#271E88#271E88
#271E88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.166 H 276.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #271E88 |
|---|---|
| RGB | rgb(39, 30, 136) |
| HSL | hsl(245, 64%, 33%) |
| HSV | hsv(245, 78%, 53%) |
| CMYK | cmyk(71.3%, 77.9%, 0%, 46.7%) |
| CIE-LAB | lab(20.58, 38.52, -57.05) |
| CIE-LCH | lch(20.58, 68.83, 304.03°) |
| OKLab | oklab(33.21% 0.0179 -0.1649) |
| OKLCH | oklch(33.21% 0.166 276.2) |
| XYZ | xyz(5.7435, 3.1369, 23.5906) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.74
Midnight Blue
#191970
ΔE00 4.06
Indigo (survey)
#380282
ΔE00 5.23
Cobalt Blue
#030AA7
ΔE00 5.34
Darkblue
#00008B
ΔE00 5.39
Navy
#000080
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E88 #7F881E
analogous
#1E4A88 #271E88 #5C1E88
triadic
#271E88 #88271E #1E8827
tetradic
#271E88 #881E4A #7F881E #1E885C
square
#271E88 #881E4A #7F881E #1E885C
split-complementary
#271E88 #885C1E #4A881E
monochromatic
#0A0824 #191356 #271E88 #3529BA #5549D7
Accessibility & contrast
On white
12.90
#271E88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#271E88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E88
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E88 | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #271e88; /* rgb */ color: rgb(39, 30, 136); /* oklch */ color: oklch(33.2% 0.166 276.2);
Tailwind
colors: {
custom: {
50: '#715cac',
500: '#271e88',
950: '#000000',
},
}SCSS
$custom: #271e88; $custom-light: #715cac; $custom-dark: #000000;
JSON
{
"hex": "#271e88",
"rgb": {
"r": 39,
"g": 30,
"b": 136
},
"hsl": {
"h": 245.094,
"s": 63.855,
"l": 32.549
},
"oklch": {
"l": 0.33214,
"c": 0.16586,
"h": 276.2
},
"luminance": 0.03137
}Semantic roles & 50–950 ramp
primary
#271E88
secondary
#B0B949
accent
#E741D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F