#28166E#28166E
#28166E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.141 H 282.8°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).
Color values
| HEX | #28166E |
|---|---|
| RGB | rgb(40, 22, 110) |
| HSL | hsl(252, 67%, 26%) |
| HSV | hsv(252, 80%, 43%) |
| CMYK | cmyk(63.6%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(16.26, 34.52, -47.57) |
| CIE-LCH | lch(16.26, 58.78, 305.97°) |
| OKLab | oklab(29.34% 0.0312 -0.1372) |
| OKLCH | oklch(29.34% 0.141 282.8) |
| XYZ | xyz(3.9756, 2.1505, 14.9544) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Dark Royal Blue
#02066F
ΔE00 4.38
Darkblue (survey)
#030764
ΔE00 4.50
Deep Blue
#040273
ΔE00 4.82
Dark Indigo
#1F0954
ΔE00 4.84
Indigo (survey)
#380282
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28166E #5C6E16
analogous
#16306E #28166E #54166E
triadic
#28166E #6E2816 #166E28
tetradic
#28166E #6E1630 #5C6E16 #166E54
square
#28166E #6E1630 #5C6E16 #166E54
split-complementary
#28166E #6E5416 #306E16
monochromatic
#09051A #150C3B #28166E #3B20A1 #4D2AD4
Accessibility & contrast
On white
14.68
#28166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#28166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28166E
14.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28166E | 1.00 | 14.68 | 1.43 | 14.68 |
| #FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #28166e; /* rgb */ color: rgb(40, 22, 110); /* oklch */ color: oklch(29.3% 0.141 282.8);
Tailwind
colors: {
custom: {
50: '#6c5699',
500: '#28166e',
950: '#000000',
},
}SCSS
$custom: #28166e; $custom-light: #6c5699; $custom-dark: #000000;
JSON
{
"hex": "#28166e",
"rgb": {
"r": 40,
"g": 22,
"b": 110
},
"hsl": {
"h": 252.273,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.29344,
"c": 0.14067,
"h": 282.8
},
"luminance": 0.02151
}Semantic roles & 50–950 ramp
primary
#28166E
secondary
#8FA43C
accent
#EA3EC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E