#271E81#271E81
#271E81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 277.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #271E81 |
|---|---|
| RGB | rgb(39, 30, 129) |
| HSL | hsl(245, 62%, 31%) |
| HSV | hsv(245, 77%, 51%) |
| CMYK | cmyk(69.8%, 76.7%, 0%, 49.4%) |
| CIE-LAB | lab(19.82, 36.17, -53.90) |
| CIE-LCH | lch(19.82, 64.91, 303.86°) |
| OKLab | oklab(32.45% 0.0195 -0.1557) |
| OKLCH | oklch(32.45% 0.157 277.1) |
| XYZ | xyz(5.2621, 2.9444, 21.0556) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.12
Royal
#0C1793
ΔE00 3.52
Indigo (survey)
#380282
ΔE00 5.32
Darkblue
#00008B
ΔE00 5.70
Navy
#000080
ΔE00 5.84
Dark Royal Blue
#02066F
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E81 #78811E
analogous
#1E4681 #271E81 #581E81
triadic
#271E81 #81271E #1E8127
tetradic
#271E81 #811E46 #78811E #1E8158
square
#271E81 #811E46 #78811E #1E8158
split-complementary
#271E81 #81581E #46811E
monochromatic
#09071E #18124F #271E81 #362AB3 #5246D4
Accessibility & contrast
On white
13.22
#271E81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271E81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E81
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E81 | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271e81; /* rgb */ color: rgb(39, 30, 129); /* oklch */ color: oklch(32.4% 0.157 277.1);
Tailwind
colors: {
custom: {
50: '#6f5ca7',
500: '#271e81',
950: '#000000',
},
}SCSS
$custom: #271e81; $custom-light: #6f5ca7; $custom-dark: #000000;
JSON
{
"hex": "#271e81",
"rgb": {
"r": 39,
"g": 30,
"b": 129
},
"hsl": {
"h": 245.455,
"s": 62.264,
"l": 31.176
},
"oklch": {
"l": 0.32447,
"c": 0.15693,
"h": 277.1
},
"luminance": 0.02945
}Semantic roles & 50–950 ramp
primary
#271E81
secondary
#AAB447
accent
#E542D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F