#271C86#271C86
#271C86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.165 H 276.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #271C86 |
|---|---|
| RGB | rgb(39, 28, 134) |
| HSL | hsl(246, 65%, 32%) |
| HSV | hsv(246, 79%, 53%) |
| CMYK | cmyk(70.9%, 79.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.97, 38.96, -56.80) |
| CIE-LCH | lch(19.97, 68.88, 304.45°) |
| OKLab | oklab(32.72% 0.0194 -0.1641) |
| OKLCH | oklch(32.72% 0.165 276.7) |
| XYZ | xyz(5.5536, 2.9826, 22.8327) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.74
Midnight Blue
#191970
ΔE00 3.79
Indigo (survey)
#380282
ΔE00 4.80
Darkblue
#00008B
ΔE00 5.04
Cobalt Blue
#030AA7
ΔE00 5.34
Navy
#000080
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C86 #7B861C
analogous
#1C4686 #271C86 #5C1C86
triadic
#271C86 #86271C #1C8627
tetradic
#271C86 #861C46 #7B861C #1C865C
square
#271C86 #861C46 #7B861C #1C865C
split-complementary
#271C86 #865C1C #46861C
monochromatic
#0A0721 #181153 #271C86 #3627B9 #5444D8
Accessibility & contrast
On white
13.15
#271C86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#271C86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C86
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C86 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271c86; /* rgb */ color: rgb(39, 28, 134); /* oklch */ color: oklch(32.7% 0.165 276.7);
Tailwind
colors: {
custom: {
50: '#715baa',
500: '#271c86',
950: '#000000',
},
}SCSS
$custom: #271c86; $custom-light: #715baa; $custom-dark: #000000;
JSON
{
"hex": "#271c86",
"rgb": {
"r": 39,
"g": 28,
"b": 134
},
"hsl": {
"h": 246.226,
"s": 65.432,
"l": 31.765
},
"oklch": {
"l": 0.32719,
"c": 0.16529,
"h": 276.7
},
"luminance": 0.02983
}Semantic roles & 50–950 ramp
primary
#271C86
secondary
#ADB945
accent
#E83FD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F