#281B7B#281B7B
#281B7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.152 H 279.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #281B7B |
|---|---|
| RGB | rgb(40, 27, 123) |
| HSL | hsl(248, 64%, 29%) |
| HSV | hsv(248, 78%, 48%) |
| CMYK | cmyk(67.5%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(18.65, 36.00, -52.01) |
| CIE-LCH | lch(18.65, 63.26, 304.69°) |
| OKLab | oklab(31.45% 0.0243 -0.1502) |
| OKLCH | oklch(31.45% 0.152 279.2) |
| XYZ | xyz(4.8410, 2.6646, 18.9943) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.48
Royal
#0C1793
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.81
Dark Royal Blue
#02066F
ΔE00 5.11
Deep Blue
#040273
ΔE00 5.39
Navy
#000080
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281B7B #6E7B1B
analogous
#1B3E7B #281B7B #581B7B
triadic
#281B7B #7B281B #1B7B28
tetradic
#281B7B #7B1B3E #6E7B1B #1B7B58
square
#281B7B #7B1B3E #6E7B1B #1B7B58
split-complementary
#281B7B #7B581B #3E7B1B
monochromatic
#080619 #181049 #281B7B #3826AD #513CD4
Accessibility & contrast
On white
13.70
#281B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#281B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281B7B
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281B7B | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #281b7b; /* rgb */ color: rgb(40, 27, 123); /* oklch */ color: oklch(31.4% 0.152 279.2);
Tailwind
colors: {
custom: {
50: '#6e5aa2',
500: '#281b7b',
950: '#000000',
},
}SCSS
$custom: #281b7b; $custom-light: #6e5aa2; $custom-dark: #000000;
JSON
{
"hex": "#281b7b",
"rgb": {
"r": 40,
"g": 27,
"b": 123
},
"hsl": {
"h": 248.125,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31447,
"c": 0.15212,
"h": 279.2
},
"luminance": 0.02665
}Semantic roles & 50–950 ramp
primary
#281B7B
secondary
#A0AF43
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F