#271A86#271A86
#271A86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.167 H 277.0°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #271A86 |
|---|---|
| RGB | rgb(39, 26, 134) |
| HSL | hsl(247, 68%, 31%) |
| HSV | hsv(247, 81%, 53%) |
| CMYK | cmyk(70.9%, 80.6%, 0%, 47.5%) |
| CIE-LAB | lab(19.60, 40.03, -57.41) |
| CIE-LCH | lch(19.60, 69.99, 304.89°) |
| OKLab | oklab(32.46% 0.0205 -0.1659) |
| OKLCH | oklch(32.46% 0.167 277) |
| XYZ | xyz(5.5078, 2.8909, 22.8174) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.63
Midnight Blue
#191970
ΔE00 3.84
Indigo (survey)
#380282
ΔE00 4.40
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 5.00
Cobalt Blue
#030AA7
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A86 #79861A
analogous
#1A4386 #271A86 #5D1A86
triadic
#271A86 #86271A #1A8627
tetradic
#271A86 #861A43 #79861A #1A865D
square
#271A86 #861A43 #79861A #1A865D
split-complementary
#271A86 #865D1A #43861A
monochromatic
#09061F #181053 #271A86 #3624B9 #5340DA
Accessibility & contrast
On white
13.31
#271A86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#271A86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A86
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A86 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271a86; /* rgb */ color: rgb(39, 26, 134); /* oklch */ color: oklch(32.5% 0.167 277.0);
Tailwind
colors: {
custom: {
50: '#715aaa',
500: '#271a86',
950: '#000000',
},
}SCSS
$custom: #271a86; $custom-light: #715aaa; $custom-dark: #000000;
JSON
{
"hex": "#271a86",
"rgb": {
"r": 39,
"g": 26,
"b": 134
},
"hsl": {
"h": 247.222,
"s": 67.5,
"l": 31.373
},
"oklch": {
"l": 0.32459,
"c": 0.16718,
"h": 277
},
"luminance": 0.02891
}Semantic roles & 50–950 ramp
primary
#271A86
secondary
#ABB942
accent
#EA3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F