#281F87#281F87
#281F87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.163 H 276.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #281F87 |
|---|---|
| RGB | rgb(40, 31, 135) |
| HSL | hsl(245, 63%, 33%) |
| HSV | hsv(245, 77%, 53%) |
| CMYK | cmyk(70.4%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(20.75, 37.73, -56.14) |
| CIE-LCH | lch(20.75, 67.64, 303.90°) |
| OKLab | oklab(33.32% 0.0189 -0.1622) |
| OKLCH | oklch(33.32% 0.163 276.7) |
| XYZ | xyz(5.7368, 3.1798, 23.2284) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Midnight Blue
#191970
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 5.62
Darkblue
#00008B
ΔE00 5.66
Navy
#000080
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F87 #7E871F
analogous
#1F4A87 #281F87 #5C1F87
triadic
#281F87 #87281F #1F8728
tetradic
#281F87 #871F4A #7E871F #1F875C
square
#281F87 #871F4A #7E871F #1F875C
split-complementary
#281F87 #875C1F #4A871F
monochromatic
#0B0823 #191455 #281F87 #372AB9 #574BD6
Accessibility & contrast
On white
12.84
#281F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#281F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F87
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F87 | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #281f87; /* rgb */ color: rgb(40, 31, 135); /* oklch */ color: oklch(33.3% 0.163 276.7);
Tailwind
colors: {
custom: {
50: '#715dab',
500: '#281f87',
950: '#000000',
},
}SCSS
$custom: #281f87; $custom-light: #715dab; $custom-dark: #000000;
JSON
{
"hex": "#281f87",
"rgb": {
"r": 40,
"g": 31,
"b": 135
},
"hsl": {
"h": 245.192,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.33319,
"c": 0.16334,
"h": 276.7
},
"luminance": 0.0318
}Semantic roles & 50–950 ramp
primary
#281F87
secondary
#AFB84A
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F