#28166C#28166C
#28166C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.138 H 283.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).
Color values
| HEX | #28166C |
|---|---|
| RGB | rgb(40, 22, 108) |
| HSL | hsl(253, 66%, 25%) |
| HSV | hsv(253, 80%, 42%) |
| CMYK | cmyk(63%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(16.04, 33.87, -46.62) |
| CIE-LCH | lch(16.04, 57.63, 306.00°) |
| OKLab | oklab(29.13% 0.0318 -0.1344) |
| OKLCH | oklch(29.13% 0.138 283.3) |
| XYZ | xyz(3.8679, 2.1074, 14.3874) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.45
Darkblue (survey)
#030764
ΔE00 4.48
Dark Royal Blue
#02066F
ΔE00 4.49
Dark Indigo
#1F0954
ΔE00 4.57
Deep Blue
#040273
ΔE00 4.97
Indigo (survey)
#380282
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28166C #5A6C16
analogous
#162F6C #28166C #53166C
triadic
#28166C #6C2816 #166C28
tetradic
#28166C #6C162F #5A6C16 #166C53
square
#28166C #6C162F #5A6C16 #166C53
split-complementary
#28166C #6C5316 #2F6C16
monochromatic
#090519 #150C39 #28166C #3B209F #4E2BD2
Accessibility & contrast
On white
14.77
#28166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#28166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28166C
14.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28166C | 1.00 | 14.77 | 1.42 | 14.77 |
| #FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #28166c; /* rgb */ color: rgb(40, 22, 108); /* oklch */ color: oklch(29.1% 0.138 283.3);
Tailwind
colors: {
custom: {
50: '#6c5697',
500: '#28166c',
950: '#000000',
},
}SCSS
$custom: #28166c; $custom-light: #6c5697; $custom-dark: #000000;
JSON
{
"hex": "#28166c",
"rgb": {
"r": 40,
"g": 22,
"b": 108
},
"hsl": {
"h": 252.558,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.29126,
"c": 0.13811,
"h": 283.3
},
"luminance": 0.02108
}Semantic roles & 50–950 ramp
primary
#28166C
secondary
#8DA23C
accent
#E93FC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E