#271582#271582
#271582 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.167 H 278.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).
Color values
| HEX | #271582 |
|---|---|
| RGB | rgb(39, 21, 130) |
| HSL | hsl(250, 72%, 30%) |
| HSV | hsv(250, 84%, 51%) |
| CMYK | cmyk(70%, 83.8%, 0%, 49%) |
| CIE-LAB | lab(18.27, 41.27, -57.09) |
| CIE-LCH | lch(18.27, 70.44, 305.86°) |
| OKLab | oklab(31.4% 0.024 -0.1649) |
| OKLCH | oklch(31.4% 0.167 278.3) |
| XYZ | xyz(5.1328, 2.5789, 21.3421) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.10
Indigo (survey)
#380282
ΔE00 3.54
Midnight Blue
#191970
ΔE00 3.67
Darkblue
#00008B
ΔE00 3.99
Navy
#000080
ΔE00 4.13
Deep Blue
#040273
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271582 #708215
analogous
#153A82 #271582 #5D1582
triadic
#271582 #822715 #158227
tetradic
#271582 #82153A #708215 #15825D
square
#271582 #82153A #708215 #15825D
split-complementary
#271582 #825D15 #3A8215
monochromatic
#08041A #170C4D #271582 #371EB7 #5033DE
Accessibility & contrast
On white
13.85
#271582 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#271582 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271582
13.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271582 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271582 | 1.00 | 13.85 | 1.52 | 13.85 |
| #FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271582; /* rgb */ color: rgb(39, 21, 130); /* oklch */ color: oklch(31.4% 0.167 278.3);
Tailwind
colors: {
custom: {
50: '#7057a8',
500: '#271582',
950: '#000000',
},
}SCSS
$custom: #271582; $custom-light: #7057a8; $custom-dark: #000000;
JSON
{
"hex": "#271582",
"rgb": {
"r": 39,
"g": 21,
"b": 130
},
"hsl": {
"h": 249.908,
"s": 72.185,
"l": 29.608
},
"oklch": {
"l": 0.31398,
"c": 0.16664,
"h": 278.3
},
"luminance": 0.02579
}Semantic roles & 50–950 ramp
primary
#271582
secondary
#A2B73C
accent
#EF39D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F