#281F85#281F85
#281F85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 276.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #281F85 |
|---|---|
| RGB | rgb(40, 31, 133) |
| HSL | hsl(245, 62%, 32%) |
| HSV | hsv(245, 77%, 52%) |
| CMYK | cmyk(69.9%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.53, 37.06, -55.24) |
| CIE-LCH | lch(20.53, 66.52, 303.85°) |
| OKLab | oklab(33.1% 0.0194 -0.1596) |
| OKLCH | oklch(33.1% 0.161 276.9) |
| XYZ | xyz(5.5973, 3.1240, 22.4938) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.22
Midnight Blue
#191970
ΔE00 3.73
Indigo (survey)
#380282
ΔE00 5.39
Darkblue
#00008B
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 5.87
Navy
#000080
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F85 #7C851F
analogous
#1F4985 #281F85 #5B1F85
triadic
#281F85 #85281F #1F8528
tetradic
#281F85 #851F49 #7C851F #1F855B
square
#281F85 #851F49 #7C851F #1F855B
split-complementary
#281F85 #855B1F #49851F
monochromatic
#0A0822 #191353 #281F85 #372BB7 #564AD5
Accessibility & contrast
On white
12.92
#281F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#281F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F85
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F85 | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #281f85; /* rgb */ color: rgb(40, 31, 133); /* oklch */ color: oklch(33.1% 0.161 276.9);
Tailwind
colors: {
custom: {
50: '#705caa',
500: '#281f85',
950: '#000000',
},
}SCSS
$custom: #281f85; $custom-light: #705caa; $custom-dark: #000000;
JSON
{
"hex": "#281f85",
"rgb": {
"r": 40,
"g": 31,
"b": 133
},
"hsl": {
"h": 245.294,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33101,
"c": 0.16079,
"h": 276.9
},
"luminance": 0.03125
}Semantic roles & 50–950 ramp
primary
#281F85
secondary
#ADB749
accent
#E543D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F