#271682#271682
#271682 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.166 H 278.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #271682 |
|---|---|
| RGB | rgb(39, 22, 130) |
| HSL | hsl(249, 71%, 30%) |
| HSV | hsv(249, 83%, 51%) |
| CMYK | cmyk(70%, 83.1%, 0%, 49%) |
| CIE-LAB | lab(18.44, 40.79, -56.81) |
| CIE-LCH | lch(18.44, 69.94, 305.67°) |
| OKLab | oklab(31.51% 0.0236 -0.1641) |
| OKLCH | oklch(31.51% 0.166 278.2) |
| XYZ | xyz(5.1516, 2.6164, 21.3483) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.07
Midnight Blue
#191970
ΔE00 3.58
Indigo (survey)
#380282
ΔE00 3.70
Darkblue
#00008B
ΔE00 4.14
Navy
#000080
ΔE00 4.29
Deep Blue
#040273
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271682 #718216
analogous
#163B82 #271682 #5D1682
triadic
#271682 #822716 #168227
tetradic
#271682 #82163B #718216 #16825D
square
#271682 #82163B #718216 #16825D
split-complementary
#271682 #825D16 #3B8216
monochromatic
#08041A #170D4E #271682 #371FB6 #5035DD
Accessibility & contrast
On white
13.78
#271682 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#271682 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271682
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271682 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271682 | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271682; /* rgb */ color: rgb(39, 22, 130); /* oklch */ color: oklch(31.5% 0.166 278.2);
Tailwind
colors: {
custom: {
50: '#7057a8',
500: '#271682',
950: '#000000',
},
}SCSS
$custom: #271682; $custom-light: #7057a8; $custom-dark: #000000;
JSON
{
"hex": "#271682",
"rgb": {
"r": 39,
"g": 22,
"b": 130
},
"hsl": {
"h": 249.444,
"s": 71.053,
"l": 29.804
},
"oklch": {
"l": 0.31513,
"c": 0.16581,
"h": 278.2
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#271682
secondary
#A3B73D
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F