#271789#271789
#271789 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.173 H 276.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #271789 |
|---|---|
| RGB | rgb(39, 23, 137) |
| HSL | hsl(248, 71%, 31%) |
| HSV | hsv(248, 83%, 54%) |
| CMYK | cmyk(71.5%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(19.43, 42.49, -59.58) |
| CIE-LCH | lch(19.43, 73.18, 305.50°) |
| OKLab | oklab(32.44% 0.021 -0.1722) |
| OKLCH | oklch(32.44% 0.173 276.9) |
| XYZ | xyz(5.6570, 2.8498, 23.9140) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.31
Indigo (survey)
#380282
ΔE00 3.93
Darkblue
#00008B
ΔE00 4.06
Midnight Blue
#191970
ΔE00 4.40
Cobalt Blue
#030AA7
ΔE00 4.50
Navy
#000080
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271789 #798917
analogous
#174089 #271789 #601789
triadic
#271789 #892717 #178927
tetradic
#271789 #891740 #798917 #178960
square
#271789 #891740 #798917 #178960
split-complementary
#271789 #896017 #408917
monochromatic
#090520 #180E55 #271789 #3620BD #533CDE
Accessibility & contrast
On white
13.38
#271789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271789
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271789 | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271789; /* rgb */ color: rgb(39, 23, 137); /* oklch */ color: oklch(32.4% 0.173 276.9);
Tailwind
colors: {
custom: {
50: '#7258ad',
500: '#271789',
950: '#000000',
},
}SCSS
$custom: #271789; $custom-light: #7258ad; $custom-dark: #000000;
JSON
{
"hex": "#271789",
"rgb": {
"r": 39,
"g": 23,
"b": 137
},
"hsl": {
"h": 248.421,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.32444,
"c": 0.17344,
"h": 276.9
},
"luminance": 0.0285
}Semantic roles & 50–950 ramp
primary
#271789
secondary
#ABBD3F
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F