#271B81#271B81
#271B81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.160 H 277.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #271B81 |
|---|---|
| RGB | rgb(39, 27, 129) |
| HSL | hsl(247, 65%, 31%) |
| HSV | hsv(247, 79%, 51%) |
| CMYK | cmyk(69.8%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(19.22, 37.86, -54.88) |
| CIE-LCH | lch(19.22, 66.68, 304.60°) |
| OKLab | oklab(32.03% 0.0213 -0.1586) |
| OKLCH | oklch(32.03% 0.16 277.6) |
| XYZ | xyz(5.1898, 2.7997, 21.0315) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Royal
#0C1793
ΔE00 3.28
Indigo (survey)
#380282
ΔE00 4.65
Darkblue
#00008B
ΔE00 5.07
Navy
#000080
ΔE00 5.20
Dark Royal Blue
#02066F
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B81 #75811B
analogous
#1B4281 #271B81 #5A1B81
triadic
#271B81 #81271B #1B8127
tetradic
#271B81 #811B42 #75811B #1B815A
square
#271B81 #811B42 #75811B #1B815A
split-complementary
#271B81 #815A1B #42811B
monochromatic
#08061C #18104E #271B81 #3626B4 #513FD7
Accessibility & contrast
On white
13.46
#271B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B81
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B81 | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271b81; /* rgb */ color: rgb(39, 27, 129); /* oklch */ color: oklch(32.0% 0.160 277.6);
Tailwind
colors: {
custom: {
50: '#6f5aa7',
500: '#271b81',
950: '#000000',
},
}SCSS
$custom: #271b81; $custom-light: #6f5aa7; $custom-dark: #000000;
JSON
{
"hex": "#271b81",
"rgb": {
"r": 39,
"g": 27,
"b": 129
},
"hsl": {
"h": 247.059,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.32027,
"c": 0.15998,
"h": 277.6
},
"luminance": 0.028
}Semantic roles & 50–950 ramp
primary
#271B81
secondary
#A7B543
accent
#E83FD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F