#271E7D#271E7D
#271E7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.152 H 277.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #271E7D |
|---|---|
| RGB | rgb(39, 30, 125) |
| HSL | hsl(246, 61%, 30%) |
| HSV | hsv(246, 76%, 49%) |
| CMYK | cmyk(68.8%, 76%, 0%, 51%) |
| CIE-LAB | lab(19.39, 34.81, -52.06) |
| CIE-LCH | lch(19.39, 62.63, 303.77°) |
| OKLab | oklab(32.02% 0.0204 -0.1504) |
| OKLCH | oklch(32.02% 0.152 277.7) |
| XYZ | xyz(5.0014, 2.8401, 19.6827) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.63
Royal
#0C1793
ΔE00 4.06
Indigo (survey)
#380282
ΔE00 5.48
Dark Royal Blue
#02066F
ΔE00 5.68
Navy
#000080
ΔE00 5.96
Darkblue
#00008B
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E7D #747D1E
analogous
#1E457D #271E7D #561E7D
triadic
#271E7D #7D271E #1E7D27
tetradic
#271E7D #7D1E45 #747D1E #1E7D56
square
#271E7D #7D1E45 #747D1E #1E7D56
split-complementary
#271E7D #7D561E #457D1E
monochromatic
#08061A #18124C #271E7D #362AAE #5143D2
Accessibility & contrast
On white
13.39
#271E7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271E7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E7D
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E7D | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271e7d; /* rgb */ color: rgb(39, 30, 125); /* oklch */ color: oklch(32.0% 0.152 277.7);
Tailwind
colors: {
custom: {
50: '#6e5ba4',
500: '#271e7d',
950: '#000000',
},
}SCSS
$custom: #271e7d; $custom-light: #6e5ba4; $custom-dark: #000000;
JSON
{
"hex": "#271e7d",
"rgb": {
"r": 39,
"g": 30,
"b": 125
},
"hsl": {
"h": 245.684,
"s": 61.29,
"l": 30.392
},
"oklch": {
"l": 0.32016,
"c": 0.15174,
"h": 277.7
},
"luminance": 0.02841
}Semantic roles & 50–950 ramp
primary
#271E7D
secondary
#A6B046
accent
#E443D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F