#271E87#271E87
#271E87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.165 H 276.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #271E87 |
|---|---|
| RGB | rgb(39, 30, 135) |
| HSL | hsl(245, 64%, 32%) |
| HSV | hsv(245, 78%, 53%) |
| CMYK | cmyk(71.1%, 77.8%, 0%, 47.1%) |
| CIE-LAB | lab(20.47, 38.18, -56.60) |
| CIE-LCH | lch(20.47, 68.28, 304.00°) |
| OKLab | oklab(33.1% 0.0181 -0.1636) |
| OKLCH | oklch(33.1% 0.165 276.3) |
| XYZ | xyz(5.6727, 3.1086, 23.2180) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.83
Midnight Blue
#191970
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 5.23
Darkblue
#00008B
ΔE00 5.42
Cobalt Blue
#030AA7
ΔE00 5.46
Navy
#000080
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E87 #7E871E
analogous
#1E4987 #271E87 #5C1E87
triadic
#271E87 #87271E #1E8727
tetradic
#271E87 #871E49 #7E871E #1E875C
square
#271E87 #871E49 #7E871E #1E875C
split-complementary
#271E87 #875C1E #49871E
monochromatic
#0A0823 #191355 #271E87 #3529B9 #5549D7
Accessibility & contrast
On white
12.95
#271E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#271E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E87
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E87 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271e87; /* rgb */ color: rgb(39, 30, 135); /* oklch */ color: oklch(33.1% 0.165 276.3);
Tailwind
colors: {
custom: {
50: '#715cab',
500: '#271e87',
950: '#000000',
},
}SCSS
$custom: #271e87; $custom-light: #715cab; $custom-dark: #000000;
JSON
{
"hex": "#271e87",
"rgb": {
"r": 39,
"g": 30,
"b": 135
},
"hsl": {
"h": 245.143,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.33104,
"c": 0.1646,
"h": 276.3
},
"luminance": 0.03109
}Semantic roles & 50–950 ramp
primary
#271E87
secondary
#AFB948
accent
#E741D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F