#281786#281786
#281786 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.170 H 277.9°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #281786 |
|---|---|
| RGB | rgb(40, 23, 134) |
| HSL | hsl(249, 71%, 31%) |
| HSV | hsv(249, 83%, 53%) |
| CMYK | cmyk(70.1%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.16, 41.65, -58.14) |
| CIE-LCH | lch(19.16, 71.52, 305.61°) |
| OKLab | oklab(32.17% 0.0234 -0.168) |
| OKLCH | oklch(32.17% 0.17 277.9) |
| XYZ | xyz(5.4832, 2.7847, 22.7982) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.68
Indigo (survey)
#380282
ΔE00 3.79
Midnight Blue
#191970
ΔE00 4.06
Darkblue
#00008B
ΔE00 4.18
Navy
#000080
ΔE00 4.54
Cobalt Blue
#030AA7
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281786 #758617
analogous
#173D86 #281786 #5F1786
triadic
#281786 #862817 #178628
tetradic
#281786 #86173D #758617 #17865F
square
#281786 #86173D #758617 #17865F
split-complementary
#281786 #865F17 #3D8617
monochromatic
#09051E #180E52 #281786 #3820BA #533ADD
Accessibility & contrast
On white
13.49
#281786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#281786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281786
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281786 | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281786; /* rgb */ color: rgb(40, 23, 134); /* oklch */ color: oklch(32.2% 0.170 277.9);
Tailwind
colors: {
custom: {
50: '#7158aa',
500: '#281786',
950: '#000000',
},
}SCSS
$custom: #281786; $custom-light: #7158aa; $custom-dark: #000000;
JSON
{
"hex": "#281786",
"rgb": {
"r": 40,
"g": 23,
"b": 134
},
"hsl": {
"h": 249.189,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32173,
"c": 0.16958,
"h": 277.9
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#281786
secondary
#A7BA3F
accent
#ED3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F