#28166F#28166F
#28166F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.142 H 282.6°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #28166F |
|---|---|
| RGB | rgb(40, 22, 111) |
| HSL | hsl(252, 67%, 26%) |
| HSV | hsv(252, 80%, 44%) |
| CMYK | cmyk(64%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(16.37, 34.84, -48.04) |
| CIE-LCH | lch(16.37, 59.35, 305.95°) |
| OKLab | oklab(29.45% 0.0309 -0.1385) |
| OKLCH | oklch(29.45% 0.142 282.6) |
| XYZ | xyz(4.0303, 2.1724, 15.2428) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.32
Dark Royal Blue
#02066F
ΔE00 4.33
Darkblue (survey)
#030764
ΔE00 4.52
Deep Blue
#040273
ΔE00 4.75
Indigo (survey)
#380282
ΔE00 4.88
Dark Indigo
#1F0954
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28166F #5D6F16
analogous
#16306F #28166F #54166F
triadic
#28166F #6F2816 #166F28
tetradic
#28166F #6F1630 #5D6F16 #166F54
square
#28166F #6F1630 #5D6F16 #166F54
split-complementary
#28166F #6F5416 #306F16
monochromatic
#09051A #160C3C #28166F #3A20A2 #4D2BD5
Accessibility & contrast
On white
14.64
#28166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#28166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28166F
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28166F | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #28166f; /* rgb */ color: rgb(40, 22, 111); /* oklch */ color: oklch(29.5% 0.142 282.6);
Tailwind
colors: {
custom: {
50: '#6c5699',
500: '#28166f',
950: '#000000',
},
}SCSS
$custom: #28166f; $custom-light: #6c5699; $custom-dark: #000000;
JSON
{
"hex": "#28166f",
"rgb": {
"r": 40,
"g": 22,
"b": 111
},
"hsl": {
"h": 252.135,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.29453,
"c": 0.14195,
"h": 282.6
},
"luminance": 0.02173
}Semantic roles & 50–950 ramp
primary
#28166F
secondary
#90A53C
accent
#EA3EC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E