#281F81#281F81
#281F81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.156 H 277.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #281F81 |
|---|---|
| RGB | rgb(40, 31, 129) |
| HSL | hsl(246, 61%, 31%) |
| HSV | hsv(246, 76%, 51%) |
| CMYK | cmyk(69%, 76%, 0%, 49.4%) |
| CIE-LAB | lab(20.11, 35.71, -53.42) |
| CIE-LCH | lch(20.11, 64.26, 303.76°) |
| OKLab | oklab(32.67% 0.0203 -0.1543) |
| OKLCH | oklch(32.67% 0.156 277.5) |
| XYZ | xyz(5.3262, 3.0156, 21.0660) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.22
Royal
#0C1793
ΔE00 3.69
Indigo (survey)
#380282
ΔE00 5.48
Darkblue
#00008B
ΔE00 5.95
Dark Royal Blue
#02066F
ΔE00 6.07
Navy
#000080
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F81 #78811F
analogous
#1F4781 #281F81 #591F81
triadic
#281F81 #81281F #1F8128
tetradic
#281F81 #811F47 #78811F #1F8159
square
#281F81 #811F47 #78811F #1F8159
split-complementary
#281F81 #81591F #47811F
monochromatic
#09071E #191350 #281F81 #372BB2 #5447D3
Accessibility & contrast
On white
13.10
#281F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#281F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F81
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F81 | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #281f81; /* rgb */ color: rgb(40, 31, 129); /* oklch */ color: oklch(32.7% 0.156 277.5);
Tailwind
colors: {
custom: {
50: '#6f5ca7',
500: '#281f81',
950: '#000000',
},
}SCSS
$custom: #281f81; $custom-light: #6f5ca7; $custom-dark: #000000;
JSON
{
"hex": "#281f81",
"rgb": {
"r": 40,
"g": 31,
"b": 129
},
"hsl": {
"h": 245.51,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.3267,
"c": 0.15564,
"h": 277.5
},
"luminance": 0.03016
}Semantic roles & 50–950 ramp
primary
#281F81
secondary
#AAB448
accent
#E443D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F