#281A7E#281A7E
#281A7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.157 H 278.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #281A7E |
|---|---|
| RGB | rgb(40, 26, 126) |
| HSL | hsl(248, 66%, 30%) |
| HSV | hsv(248, 79%, 49%) |
| CMYK | cmyk(68.3%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(18.78, 37.54, -53.70) |
| CIE-LCH | lch(18.78, 65.52, 304.95°) |
| OKLab | oklab(31.64% 0.0241 -0.1551) |
| OKLCH | oklch(31.64% 0.157 278.8) |
| XYZ | xyz(5.0092, 2.6958, 19.9910) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.87
Royal
#0C1793
ΔE00 3.70
Indigo (survey)
#380282
ΔE00 4.46
Dark Royal Blue
#02066F
ΔE00 5.06
Navy
#000080
ΔE00 5.11
Darkblue
#00008B
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281A7E #707E1A
analogous
#1A3E7E #281A7E #5A1A7E
triadic
#281A7E #7E281A #1A7E28
tetradic
#281A7E #7E1A3E #707E1A #1A7E5A
square
#281A7E #7E1A3E #707E1A #1A7E5A
split-complementary
#281A7E #7E5A1A #3E7E1A
monochromatic
#080519 #18104B #281A7E #3824B1 #513CD7
Accessibility & contrast
On white
13.64
#281A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#281A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281A7E
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281A7E | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281a7e; /* rgb */ color: rgb(40, 26, 126); /* oklch */ color: oklch(31.6% 0.157 278.8);
Tailwind
colors: {
custom: {
50: '#6f59a4',
500: '#281a7e',
950: '#000000',
},
}SCSS
$custom: #281a7e; $custom-light: #6f59a4; $custom-dark: #000000;
JSON
{
"hex": "#281a7e",
"rgb": {
"r": 40,
"g": 26,
"b": 126
},
"hsl": {
"h": 248.4,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.3164,
"c": 0.15695,
"h": 278.8
},
"luminance": 0.02696
}Semantic roles & 50–950 ramp
primary
#281A7E
secondary
#A2B242
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F