#271E7E#271E7E
#271E7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.153 H 277.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #271E7E |
|---|---|
| RGB | rgb(39, 30, 126) |
| HSL | hsl(246, 62%, 31%) |
| HSV | hsv(246, 76%, 49%) |
| CMYK | cmyk(69%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(19.50, 35.15, -52.52) |
| CIE-LCH | lch(19.50, 63.20, 303.79°) |
| OKLab | oklab(32.12% 0.0202 -0.1517) |
| OKLCH | oklch(32.12% 0.153 277.6) |
| XYZ | xyz(5.0656, 2.8658, 20.0208) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Royal
#0C1793
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 5.43
Dark Royal Blue
#02066F
ΔE00 5.71
Darkblue
#00008B
ΔE00 5.90
Navy
#000080
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E7E #757E1E
analogous
#1E457E #271E7E #571E7E
triadic
#271E7E #7E271E #1E7E27
tetradic
#271E7E #7E1E45 #757E1E #1E7E57
square
#271E7E #7E1E45 #757E1E #1E7E57
split-complementary
#271E7E #7E571E #457E1E
monochromatic
#08061B #18124D #271E7E #362AAF #5144D2
Accessibility & contrast
On white
13.35
#271E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E7E
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E7E | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271e7e; /* rgb */ color: rgb(39, 30, 126); /* oklch */ color: oklch(32.1% 0.153 277.6);
Tailwind
colors: {
custom: {
50: '#6e5ba4',
500: '#271e7e',
950: '#000000',
},
}SCSS
$custom: #271e7e; $custom-light: #6e5ba4; $custom-dark: #000000;
JSON
{
"hex": "#271e7e",
"rgb": {
"r": 39,
"g": 30,
"b": 126
},
"hsl": {
"h": 245.625,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.32123,
"c": 0.15305,
"h": 277.6
},
"luminance": 0.02866
}Semantic roles & 50–950 ramp
primary
#271E7E
secondary
#A7B147
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F