#271B88#271B88
#271B88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.169 H 276.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #271B88 |
|---|---|
| RGB | rgb(39, 27, 136) |
| HSL | hsl(247, 67%, 32%) |
| HSV | hsv(247, 80%, 53%) |
| CMYK | cmyk(71.3%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.01, 40.15, -57.99) |
| CIE-LCH | lch(20.01, 70.53, 304.70°) |
| OKLab | oklab(32.81% 0.0194 -0.1676) |
| OKLCH | oklch(32.81% 0.169 276.6) |
| XYZ | xyz(5.6711, 2.9923, 23.5665) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.47
Midnight Blue
#191970
ΔE00 4.08
Indigo (survey)
#380282
ΔE00 4.62
Darkblue
#00008B
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 4.97
Navy
#000080
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B88 #7C881B
analogous
#1B4588 #271B88 #5E1B88
triadic
#271B88 #88271B #1B8827
tetradic
#271B88 #881B45 #7C881B #1B885E
square
#271B88 #881B45 #7C881B #1B885E
split-complementary
#271B88 #885E1B #45881B
monochromatic
#0A0722 #181155 #271B88 #3625BB #5444DA
Accessibility & contrast
On white
13.14
#271B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#271B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B88
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B88 | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271b88; /* rgb */ color: rgb(39, 27, 136); /* oklch */ color: oklch(32.8% 0.169 276.6);
Tailwind
colors: {
custom: {
50: '#715aac',
500: '#271b88',
950: '#000000',
},
}SCSS
$custom: #271b88; $custom-light: #715aac; $custom-dark: #000000;
JSON
{
"hex": "#271b88",
"rgb": {
"r": 39,
"g": 27,
"b": 136
},
"hsl": {
"h": 246.606,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.32814,
"c": 0.16873,
"h": 276.6
},
"luminance": 0.02993
}Semantic roles & 50–950 ramp
primary
#271B88
secondary
#AEBB44
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F