#271D86#271D86
#271D86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.164 H 276.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #271D86 |
|---|---|
| RGB | rgb(39, 29, 134) |
| HSL | hsl(246, 64%, 32%) |
| HSV | hsv(246, 78%, 53%) |
| CMYK | cmyk(70.9%, 78.4%, 0%, 47.5%) |
| CIE-LAB | lab(20.17, 38.41, -56.48) |
| CIE-LCH | lch(20.17, 68.30, 304.22°) |
| OKLab | oklab(32.86% 0.0189 -0.1632) |
| OKLCH | oklch(32.86% 0.164 276.6) |
| XYZ | xyz(5.5777, 3.0308, 22.8407) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.83
Midnight Blue
#191970
ΔE00 3.78
Indigo (survey)
#380282
ΔE00 5.01
Darkblue
#00008B
ΔE00 5.24
Cobalt Blue
#030AA7
ΔE00 5.46
Navy
#000080
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271D86 #7C861D
analogous
#1D4886 #271D86 #5C1D86
triadic
#271D86 #86271D #1D8627
tetradic
#271D86 #861D48 #7C861D #1D865C
square
#271D86 #861D48 #7C861D #1D865C
split-complementary
#271D86 #865C1D #48861D
monochromatic
#0A0721 #181254 #271D86 #3628B8 #5446D7
Accessibility & contrast
On white
13.07
#271D86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#271D86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271D86
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271D86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271D86 | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271d86; /* rgb */ color: rgb(39, 29, 134); /* oklch */ color: oklch(32.9% 0.164 276.6);
Tailwind
colors: {
custom: {
50: '#705baa',
500: '#271d86',
950: '#000000',
},
}SCSS
$custom: #271d86; $custom-light: #705baa; $custom-dark: #000000;
JSON
{
"hex": "#271d86",
"rgb": {
"r": 39,
"g": 29,
"b": 134
},
"hsl": {
"h": 245.714,
"s": 64.417,
"l": 31.961
},
"oklch": {
"l": 0.32855,
"c": 0.16432,
"h": 276.6
},
"luminance": 0.03031
}Semantic roles & 50–950 ramp
primary
#271D86
secondary
#AEB946
accent
#E740D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F