#281E7B#281E7B
#281E7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.149 H 278.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #281E7B |
|---|---|
| RGB | rgb(40, 30, 123) |
| HSL | hsl(246, 61%, 30%) |
| HSV | hsv(246, 76%, 48%) |
| CMYK | cmyk(67.5%, 75.6%, 0%, 51.8%) |
| CIE-LAB | lab(19.26, 34.26, -51.00) |
| CIE-LCH | lch(19.26, 61.44, 303.89°) |
| OKLab | oklab(31.88% 0.0223 -0.1472) |
| OKLCH | oklch(31.88% 0.149 278.6) |
| XYZ | xyz(4.9133, 2.8093, 19.0184) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.50
Royal
#0C1793
ΔE00 4.40
Indigo (survey)
#380282
ΔE00 5.50
Dark Royal Blue
#02066F
ΔE00 5.67
Deep Blue
#040273
ΔE00 6.02
Navy
#000080
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281E7B #717B1E
analogous
#1E427B #281E7B #571E7B
triadic
#281E7B #7B281E #1E7B28
tetradic
#281E7B #7B1E42 #717B1E #1E7B57
square
#281E7B #7B1E42 #717B1E #1E7B57
split-complementary
#281E7B #7B571E #427B1E
monochromatic
#080619 #18124A #281E7B #382AAC #5242D1
Accessibility & contrast
On white
13.44
#281E7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#281E7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281E7B
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281E7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281E7B | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #281e7b; /* rgb */ color: rgb(40, 30, 123); /* oklch */ color: oklch(31.9% 0.149 278.6);
Tailwind
colors: {
custom: {
50: '#6e5ba2',
500: '#281e7b',
950: '#000000',
},
}SCSS
$custom: #281e7b; $custom-light: #6e5ba2; $custom-dark: #000000;
JSON
{
"hex": "#281e7b",
"rgb": {
"r": 40,
"g": 30,
"b": 123
},
"hsl": {
"h": 246.452,
"s": 60.784,
"l": 30
},
"oklch": {
"l": 0.31882,
"c": 0.14891,
"h": 278.6
},
"luminance": 0.0281
}Semantic roles & 50–950 ramp
primary
#281E7B
secondary
#A3AE46
accent
#E444D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F