#271E82#271E82
#271E82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.158 H 277.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #271E82 |
|---|---|
| RGB | rgb(39, 30, 130) |
| HSL | hsl(245, 63%, 31%) |
| HSV | hsv(245, 77%, 51%) |
| CMYK | cmyk(70%, 76.9%, 0%, 49%) |
| CIE-LAB | lab(19.93, 36.51, -54.35) |
| CIE-LCH | lch(19.93, 65.47, 303.89°) |
| OKLab | oklab(32.56% 0.0193 -0.157) |
| OKLCH | oklch(32.56% 0.158 277) |
| XYZ | xyz(5.3289, 2.9711, 21.4074) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Royal
#0C1793
ΔE00 3.39
Indigo (survey)
#380282
ΔE00 5.29
Darkblue
#00008B
ΔE00 5.64
Navy
#000080
ΔE00 5.82
Dark Royal Blue
#02066F
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E82 #79821E
analogous
#1E4782 #271E82 #591E82
triadic
#271E82 #82271E #1E8227
tetradic
#271E82 #821E47 #79821E #1E8259
square
#271E82 #821E47 #79821E #1E8259
split-complementary
#271E82 #82591E #47821E
monochromatic
#09071F #181350 #271E82 #3629B4 #5346D4
Accessibility & contrast
On white
13.17
#271E82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271E82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E82
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E82 | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271e82; /* rgb */ color: rgb(39, 30, 130); /* oklch */ color: oklch(32.6% 0.158 277.0);
Tailwind
colors: {
custom: {
50: '#6f5ca7',
500: '#271e82',
950: '#000000',
},
}SCSS
$custom: #271e82; $custom-light: #6f5ca7; $custom-dark: #000000;
JSON
{
"hex": "#271e82",
"rgb": {
"r": 39,
"g": 30,
"b": 130
},
"hsl": {
"h": 245.4,
"s": 62.5,
"l": 31.373
},
"oklch": {
"l": 0.32556,
"c": 0.15823,
"h": 277
},
"luminance": 0.02972
}Semantic roles & 50–950 ramp
primary
#271E82
secondary
#ABB547
accent
#E642D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F