#28186C#28186C
#28186C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.136 H 282.9°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #28186C |
|---|---|
| RGB | rgb(40, 24, 108) |
| HSL | hsl(251, 64%, 26%) |
| HSV | hsv(251, 78%, 42%) |
| CMYK | cmyk(63%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(16.44, 32.75, -45.97) |
| CIE-LCH | lch(16.44, 56.44, 305.46°) |
| OKLab | oklab(29.41% 0.0303 -0.1325) |
| OKLCH | oklch(29.41% 0.136 282.9) |
| XYZ | xyz(3.9076, 2.1868, 14.4006) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.27
Darkblue (survey)
#030764
ΔE00 4.77
Dark Indigo
#1F0954
ΔE00 4.79
Dark Royal Blue
#02066F
ΔE00 4.82
Deep Blue
#040273
ΔE00 5.35
Indigo (survey)
#380282
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28186C #5C6C18
analogous
#18326C #28186C #52186C
triadic
#28186C #6C2818 #186C28
tetradic
#28186C #6C1832 #5C6C18 #186C52
square
#28186C #6C1832 #5C6C18 #186C52
split-complementary
#28186C #6C5218 #326C18
monochromatic
#090619 #150D3A #28186C #3B239E #4D2ED0
Accessibility & contrast
On white
14.61
#28186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#28186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28186C
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28186C | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #28186c; /* rgb */ color: rgb(40, 24, 108); /* oklch */ color: oklch(29.4% 0.136 282.9);
Tailwind
colors: {
custom: {
50: '#6b5797',
500: '#28186c',
950: '#000000',
},
}SCSS
$custom: #28186c; $custom-light: #6b5797; $custom-dark: #000000;
JSON
{
"hex": "#28186c",
"rgb": {
"r": 40,
"g": 24,
"b": 108
},
"hsl": {
"h": 251.429,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.29406,
"c": 0.13591,
"h": 282.9
},
"luminance": 0.02187
}Semantic roles & 50–950 ramp
primary
#28186C
secondary
#8FA23E
accent
#E741C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E