#271B89#271B89
#271B89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.170 H 276.5°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #271B89 |
|---|---|
| RGB | rgb(39, 27, 137) |
| HSL | hsl(247, 67%, 32%) |
| HSV | hsv(247, 80%, 54%) |
| CMYK | cmyk(71.5%, 80.3%, 0%, 46.3%) |
| CIE-LAB | lab(20.13, 40.48, -58.43) |
| CIE-LCH | lch(20.13, 71.08, 304.71°) |
| OKLab | oklab(32.93% 0.0191 -0.1689) |
| OKLCH | oklch(32.93% 0.17 276.5) |
| XYZ | xyz(5.7425, 3.0208, 23.9425) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.38
Midnight Blue
#191970
ΔE00 4.22
Indigo (survey)
#380282
ΔE00 4.63
Darkblue
#00008B
ΔE00 4.76
Cobalt Blue
#030AA7
ΔE00 4.85
Navy
#000080
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B89 #7D891B
analogous
#1B4689 #271B89 #5E1B89
triadic
#271B89 #89271B #1B8927
tetradic
#271B89 #891B46 #7D891B #1B895E
square
#271B89 #891B46 #7D891B #1B895E
split-complementary
#271B89 #895E1B #46891B
monochromatic
#0A0723 #181156 #271B89 #3625BC #5544DA
Accessibility & contrast
On white
13.09
#271B89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#271B89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B89
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B89 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271b89; /* rgb */ color: rgb(39, 27, 137); /* oklch */ color: oklch(32.9% 0.170 276.5);
Tailwind
colors: {
custom: {
50: '#715aad',
500: '#271b89',
950: '#000000',
},
}SCSS
$custom: #271b89; $custom-light: #715aad; $custom-dark: #000000;
JSON
{
"hex": "#271b89",
"rgb": {
"r": 39,
"g": 27,
"b": 137
},
"hsl": {
"h": 246.545,
"s": 67.073,
"l": 32.157
},
"oklch": {
"l": 0.32927,
"c": 0.16996,
"h": 276.5
},
"luminance": 0.03021
}Semantic roles & 50–950 ramp
primary
#271B89
secondary
#AFBC44
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F