#271B86#271B86
#271B86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.166 H 276.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #271B86 |
|---|---|
| RGB | rgb(39, 27, 134) |
| HSL | hsl(247, 66%, 32%) |
| HSV | hsv(247, 80%, 53%) |
| CMYK | cmyk(70.9%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(19.79, 39.50, -57.11) |
| CIE-LCH | lch(19.79, 69.44, 304.67°) |
| OKLab | oklab(32.59% 0.0199 -0.165) |
| OKLCH | oklch(32.59% 0.166 276.9) |
| XYZ | xyz(5.5303, 2.9359, 22.8249) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.68
Midnight Blue
#191970
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 4.60
Darkblue
#00008B
ΔE00 4.84
Navy
#000080
ΔE00 5.19
Cobalt Blue
#030AA7
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B86 #7A861B
analogous
#1B4586 #271B86 #5D1B86
triadic
#271B86 #86271B #1B8627
tetradic
#271B86 #861B45 #7A861B #1B865D
square
#271B86 #861B45 #7A861B #1B865D
split-complementary
#271B86 #865D1B #45861B
monochromatic
#090620 #181153 #271B86 #3625B9 #5342D9
Accessibility & contrast
On white
13.23
#271B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B86
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B86 | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271b86; /* rgb */ color: rgb(39, 27, 134); /* oklch */ color: oklch(32.6% 0.166 276.9);
Tailwind
colors: {
custom: {
50: '#715aaa',
500: '#271b86',
950: '#000000',
},
}SCSS
$custom: #271b86; $custom-light: #715aaa; $custom-dark: #000000;
JSON
{
"hex": "#271b86",
"rgb": {
"r": 39,
"g": 27,
"b": 134
},
"hsl": {
"h": 246.729,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.32587,
"c": 0.16624,
"h": 276.9
},
"luminance": 0.02936
}Semantic roles & 50–950 ramp
primary
#271B86
secondary
#ACB944
accent
#E93ED6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F