#281D7E#281D7E
#281D7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.154 H 278.3°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #281D7E |
|---|---|
| RGB | rgb(40, 29, 126) |
| HSL | hsl(247, 63%, 30%) |
| HSV | hsv(247, 77%, 49%) |
| CMYK | cmyk(68.3%, 77%, 0%, 50.6%) |
| CIE-LAB | lab(19.37, 35.86, -52.73) |
| CIE-LCH | lch(19.37, 63.76, 304.22°) |
| OKLab | oklab(32.06% 0.0222 -0.1523) |
| OKLCH | oklch(32.06% 0.154 278.3) |
| XYZ | xyz(5.0791, 2.8358, 20.0143) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.80
Royal
#0C1793
ΔE00 3.88
Indigo (survey)
#380282
ΔE00 5.11
Dark Royal Blue
#02066F
ΔE00 5.57
Darkblue
#00008B
ΔE00 5.72
Navy
#000080
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281D7E #737E1D
analogous
#1D427E #281D7E #581D7E
triadic
#281D7E #7E281D #1D7E28
tetradic
#281D7E #7E1D42 #737E1D #1D7E58
square
#281D7E #7E1D42 #737E1D #1D7E58
split-complementary
#281D7E #7E581D #427E1D
monochromatic
#08061B #18124C #281D7E #3828B0 #5242D3
Accessibility & contrast
On white
13.40
#281D7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#281D7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281D7E
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281D7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281D7E | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #281d7e; /* rgb */ color: rgb(40, 29, 126); /* oklch */ color: oklch(32.1% 0.154 278.3);
Tailwind
colors: {
custom: {
50: '#6f5ba4',
500: '#281d7e',
950: '#000000',
},
}SCSS
$custom: #281d7e; $custom-light: #6f5ba4; $custom-dark: #000000;
JSON
{
"hex": "#281d7e",
"rgb": {
"r": 40,
"g": 29,
"b": 126
},
"hsl": {
"h": 246.804,
"s": 62.581,
"l": 30.392
},
"oklch": {
"l": 0.32056,
"c": 0.15389,
"h": 278.3
},
"luminance": 0.02836
}Semantic roles & 50–950 ramp
primary
#281D7E
secondary
#A5B145
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F