#271E86#271E86
#271E86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.163 H 276.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #271E86 |
|---|---|
| RGB | rgb(39, 30, 134) |
| HSL | hsl(245, 63%, 32%) |
| HSV | hsv(245, 78%, 53%) |
| CMYK | cmyk(70.9%, 77.6%, 0%, 47.5%) |
| CIE-LAB | lab(20.36, 37.85, -56.15) |
| CIE-LCH | lch(20.36, 67.72, 303.98°) |
| OKLab | oklab(32.99% 0.0183 -0.1623) |
| OKLCH | oklch(32.99% 0.163 276.4) |
| XYZ | xyz(5.6026, 3.0806, 22.8490) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.93
Midnight Blue
#191970
ΔE00 3.79
Indigo (survey)
#380282
ΔE00 5.23
Darkblue
#00008B
ΔE00 5.45
Cobalt Blue
#030AA7
ΔE00 5.59
Navy
#000080
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E86 #7D861E
analogous
#1E4986 #271E86 #5B1E86
triadic
#271E86 #86271E #1E8627
tetradic
#271E86 #861E49 #7D861E #1E865B
square
#271E86 #861E49 #7D861E #1E865B
split-complementary
#271E86 #865B1E #49861E
monochromatic
#0A0822 #181354 #271E86 #3629B8 #5548D6
Accessibility & contrast
On white
12.99
#271E86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#271E86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E86
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E86 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271e86; /* rgb */ color: rgb(39, 30, 134); /* oklch */ color: oklch(33.0% 0.163 276.4);
Tailwind
colors: {
custom: {
50: '#705caa',
500: '#271e86',
950: '#000000',
},
}SCSS
$custom: #271e86; $custom-light: #705caa; $custom-dark: #000000;
JSON
{
"hex": "#271e86",
"rgb": {
"r": 39,
"g": 30,
"b": 134
},
"hsl": {
"h": 245.192,
"s": 63.415,
"l": 32.157
},
"oklch": {
"l": 0.32994,
"c": 0.16333,
"h": 276.4
},
"luminance": 0.03081
}Semantic roles & 50–950 ramp
primary
#271E86
secondary
#AFB847
accent
#E641D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F