Skip to content
Kolorvia
#28118a

Color #28118a

A vivid, highly saturated dark blue.

Conversions

HEX
#28118a
RGB
rgb(40, 17, 138)
HSL
hsl(251.4, 78.1%, 30.4%)
HSV / HSB
hsv(251.4, 87.7%, 54.1%)
CMYK
cmyk(71%, 87.7%, 0%, 45.9%)
LAB
lab(18.74, 45.52, -61.35)
LCH
lch(18.74, 76.39, 306.57)
OKLCH
oklch(32%, 0.1789, 277.87)
HWB
hwb(251.4, 6.7%, 45.9%)

Harmony colors

Complementary

#738a11

Analogous

#11378a
#28118a
#65118a

Triadic

#28118a
#8a2811
#118a28

Split-complementary

#28118a
#8a6511
#378a11

Tetradic

#28118a
#8a1173
#738a11
#118a28

Square

#28118a
#8a1137
#738a11
#118a65

Shades

Color #28118a mixed toward black.

#210e73
#1b0b5c
#140845
#0d062e
#070317

Tints

Color #28118a mixed toward white.

#3717bf
#4f2ce5
#7b61ec
#a796f2
#d3caf9

Tones

Color #28118a mixed toward gray.

#2e1b80
#342576
#3b2f6c
#413962
#474358

Accessibility

Aa White text on this color
13.66:1
Aa Black text on this color
1.54:1

White text reads better on this background (13.66:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#20207a · ΔE 4.6

Deuteranopia

#212376 · ΔE 5.8

Tritanopia

#276b67 · ΔE 37.2

Achromatopsia

#2e2e2e · ΔE 28.1

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #28118a;
Tailwind (arbitrary value)
bg-[#28118a]

Related colors

Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Slate Blue #6a5acd
Medium Purple #9370db
Navy #000080
Lavender #e6e6fa

Frequently asked questions

#28118a (#28118a) is rgb(40, 17, 138) in RGB.

No, #28118a is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #28118a, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.