#271E85#271E85
#271E85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.162 H 276.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #271E85 |
|---|---|
| RGB | rgb(39, 30, 133) |
| HSL | hsl(245, 63%, 32%) |
| HSV | hsv(245, 77%, 52%) |
| CMYK | cmyk(70.7%, 77.4%, 0%, 47.8%) |
| CIE-LAB | lab(20.25, 37.52, -55.71) |
| CIE-LCH | lch(20.25, 67.16, 303.96°) |
| OKLab | oklab(32.88% 0.0186 -0.161) |
| OKLCH | oklch(32.88% 0.162 276.6) |
| XYZ | xyz(5.5332, 3.0528, 22.4834) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.04
Midnight Blue
#191970
ΔE00 3.65
Indigo (survey)
#380282
ΔE00 5.24
Darkblue
#00008B
ΔE00 5.49
Cobalt Blue
#030AA7
ΔE00 5.72
Navy
#000080
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E85 #7C851E
analogous
#1E4985 #271E85 #5B1E85
triadic
#271E85 #85271E #1E8527
tetradic
#271E85 #851E49 #7C851E #1E855B
square
#271E85 #851E49 #7C851E #1E855B
split-complementary
#271E85 #855B1E #49851E
monochromatic
#0A0721 #181353 #271E85 #3629B7 #5448D6
Accessibility & contrast
On white
13.04
#271E85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#271E85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E85
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E85 | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271e85; /* rgb */ color: rgb(39, 30, 133); /* oklch */ color: oklch(32.9% 0.162 276.6);
Tailwind
colors: {
custom: {
50: '#705caa',
500: '#271e85',
950: '#000000',
},
}SCSS
$custom: #271e85; $custom-light: #705caa; $custom-dark: #000000;
JSON
{
"hex": "#271e85",
"rgb": {
"r": 39,
"g": 30,
"b": 133
},
"hsl": {
"h": 245.243,
"s": 63.19,
"l": 31.961
},
"oklch": {
"l": 0.32884,
"c": 0.16206,
"h": 276.6
},
"luminance": 0.03053
}Semantic roles & 50–950 ramp
primary
#271E85
secondary
#AEB847
accent
#E642D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F