#271787#271787
#271787 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.171 H 277.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #271787 |
|---|---|
| RGB | rgb(39, 23, 135) |
| HSL | hsl(249, 71%, 31%) |
| HSV | hsv(249, 83%, 53%) |
| CMYK | cmyk(71.1%, 83%, 0%, 47.1%) |
| CIE-LAB | lab(19.19, 41.87, -58.72) |
| CIE-LCH | lch(19.19, 72.11, 305.49°) |
| OKLab | oklab(32.21% 0.0216 -0.1697) |
| OKLCH | oklch(32.21% 0.171 277.2) |
| XYZ | xyz(5.5149, 2.7929, 23.1654) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.49
Indigo (survey)
#380282
ΔE00 3.88
Darkblue
#00008B
ΔE00 4.09
Midnight Blue
#191970
ΔE00 4.14
Navy
#000080
ΔE00 4.51
Cobalt Blue
#030AA7
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271787 #778717
analogous
#173F87 #271787 #5F1787
triadic
#271787 #872717 #178727
tetradic
#271787 #87173F #778717 #17875F
square
#271787 #87173F #778717 #17875F
split-complementary
#271787 #875F17 #3F8717
monochromatic
#09051E #180E53 #271787 #3620BB #523BDE
Accessibility & contrast
On white
13.47
#271787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271787
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271787 | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271787; /* rgb */ color: rgb(39, 23, 135); /* oklch */ color: oklch(32.2% 0.171 277.2);
Tailwind
colors: {
custom: {
50: '#7158ab',
500: '#271787',
950: '#000000',
},
}SCSS
$custom: #271787; $custom-light: #7158ab; $custom-dark: #000000;
JSON
{
"hex": "#271787",
"rgb": {
"r": 39,
"g": 23,
"b": 135
},
"hsl": {
"h": 248.571,
"s": 70.886,
"l": 30.98
},
"oklch": {
"l": 0.3221,
"c": 0.17103,
"h": 277.2
},
"luminance": 0.02793
}Semantic roles & 50–950 ramp
primary
#271787
secondary
#A9BB3F
accent
#EE3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F