#281B79#281B79
#281B79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.150 H 279.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #281B79 |
|---|---|
| RGB | rgb(40, 27, 121) |
| HSL | hsl(248, 64%, 29%) |
| HSV | hsv(248, 78%, 47%) |
| CMYK | cmyk(66.9%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(18.43, 35.33, -51.09) |
| CIE-LCH | lch(18.43, 62.12, 304.67°) |
| OKLab | oklab(31.23% 0.0248 -0.1475) |
| OKLCH | oklch(31.23% 0.15 279.5) |
| XYZ | xyz(4.7171, 2.6151, 18.3416) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.28
Royal
#0C1793
ΔE00 4.46
Indigo (survey)
#380282
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 5.06
Deep Blue
#040273
ΔE00 5.39
Navy
#000080
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281B79 #6C791B
analogous
#1B3D79 #281B79 #571B79
triadic
#281B79 #79281B #1B7928
tetradic
#281B79 #791B3D #6C791B #1B7957
square
#281B79 #791B3D #6C791B #1B7957
split-complementary
#281B79 #79571B #3D791B
monochromatic
#080619 #171047 #281B79 #3926AB #503BD3
Accessibility & contrast
On white
13.79
#281B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#281B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281B79
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281B79 | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #281b79; /* rgb */ color: rgb(40, 27, 121); /* oklch */ color: oklch(31.2% 0.150 279.5);
Tailwind
colors: {
custom: {
50: '#6e59a1',
500: '#281b79',
950: '#000000',
},
}SCSS
$custom: #281b79; $custom-light: #6e59a1; $custom-dark: #000000;
JSON
{
"hex": "#281b79",
"rgb": {
"r": 40,
"g": 27,
"b": 121
},
"hsl": {
"h": 248.298,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.3123,
"c": 0.14955,
"h": 279.5
},
"luminance": 0.02615
}Semantic roles & 50–950 ramp
primary
#281B79
secondary
#9EAD43
accent
#E741D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F