#281A7C#281A7C
#281A7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.154 H 279.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).
Color values
| HEX | #281A7C |
|---|---|
| RGB | rgb(40, 26, 124) |
| HSL | hsl(249, 65%, 29%) |
| HSV | hsv(249, 79%, 49%) |
| CMYK | cmyk(67.7%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(18.56, 36.89, -52.79) |
| CIE-LCH | lch(18.56, 64.40, 304.94°) |
| OKLab | oklab(31.42% 0.0246 -0.1524) |
| OKLCH | oklch(31.42% 0.154 279.2) |
| XYZ | xyz(4.8814, 2.6447, 19.3181) |
| Luminance | 0.0265 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.63
Royal
#0C1793
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.55
Dark Royal Blue
#02066F
ΔE00 4.98
Navy
#000080
ΔE00 5.19
Deep Blue
#040273
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281A7C #6E7C1A
analogous
#1A3D7C #281A7C #591A7C
triadic
#281A7C #7C281A #1A7C28
tetradic
#281A7C #7C1A3D #6E7C1A #1A7C59
square
#281A7C #7C1A3D #6E7C1A #1A7C59
split-complementary
#281A7C #7C591A #3D7C1A
monochromatic
#080519 #180F49 #281A7C #3825AF #513BD6
Accessibility & contrast
On white
13.73
#281A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#281A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281A7C
13.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281A7C | 1.00 | 13.73 | 1.53 | 13.73 |
| #FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #281a7c; /* rgb */ color: rgb(40, 26, 124); /* oklch */ color: oklch(31.4% 0.154 279.2);
Tailwind
colors: {
custom: {
50: '#6f59a3',
500: '#281a7c',
950: '#000000',
},
}SCSS
$custom: #281a7c; $custom-light: #6f59a3; $custom-dark: #000000;
JSON
{
"hex": "#281a7c",
"rgb": {
"r": 40,
"g": 26,
"b": 124
},
"hsl": {
"h": 248.571,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.31419,
"c": 0.15442,
"h": 279.2
},
"luminance": 0.02645
}Semantic roles & 50–950 ramp
primary
#281A7C
secondary
#A0B042
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F