#281B7F#281B7F
#281B7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.157 H 278.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #281B7F |
|---|---|
| RGB | rgb(40, 27, 127) |
| HSL | hsl(248, 65%, 30%) |
| HSV | hsv(248, 79%, 50%) |
| CMYK | cmyk(68.5%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(19.09, 37.32, -53.84) |
| CIE-LCH | lch(19.09, 65.51, 304.73°) |
| OKLab | oklab(31.89% 0.0232 -0.1555) |
| OKLCH | oklch(31.89% 0.157 278.5) |
| XYZ | xyz(5.0965, 2.7669, 20.3400) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.95
Royal
#0C1793
ΔE00 3.60
Indigo (survey)
#380282
ΔE00 4.63
Darkblue
#00008B
ΔE00 5.24
Dark Royal Blue
#02066F
ΔE00 5.27
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281B7F #727F1B
analogous
#1B407F #281B7F #5A1B7F
triadic
#281B7F #7F281B #1B7F28
tetradic
#281B7F #7F1B40 #727F1B #1B7F5A
square
#281B7F #7F1B40 #727F1B #1B7F5A
split-complementary
#281B7F #7F5A1B #407F1B
monochromatic
#08061A #18104D #281B7F #3826B1 #523ED6
Accessibility & contrast
On white
13.52
#281B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#281B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281B7F
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281B7F | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281b7f; /* rgb */ color: rgb(40, 27, 127); /* oklch */ color: oklch(31.9% 0.157 278.5);
Tailwind
colors: {
custom: {
50: '#6f5aa5',
500: '#281b7f',
950: '#000000',
},
}SCSS
$custom: #281b7f; $custom-light: #6f5aa5; $custom-dark: #000000;
JSON
{
"hex": "#281b7f",
"rgb": {
"r": 40,
"g": 27,
"b": 127
},
"hsl": {
"h": 247.8,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.31885,
"c": 0.15723,
"h": 278.5
},
"luminance": 0.02767
}Semantic roles & 50–950 ramp
primary
#281B7F
secondary
#A4B343
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F