#271B82#271B82
#271B82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.161 H 277.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #271B82 |
|---|---|
| RGB | rgb(39, 27, 130) |
| HSL | hsl(247, 66%, 31%) |
| HSV | hsv(247, 79%, 51%) |
| CMYK | cmyk(70%, 79.2%, 0%, 49%) |
| CIE-LAB | lab(19.33, 38.19, -55.33) |
| CIE-LCH | lch(19.33, 67.23, 304.62°) |
| OKLab | oklab(32.14% 0.021 -0.1599) |
| OKLCH | oklch(32.14% 0.161 277.5) |
| XYZ | xyz(5.2566, 2.8264, 21.3833) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.15
Midnight Blue
#191970
ΔE00 3.26
Indigo (survey)
#380282
ΔE00 4.63
Darkblue
#00008B
ΔE00 5.01
Navy
#000080
ΔE00 5.18
Dark Royal Blue
#02066F
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B82 #76821B
analogous
#1B4282 #271B82 #5A1B82
triadic
#271B82 #82271B #1B8227
tetradic
#271B82 #821B42 #76821B #1B825A
square
#271B82 #821B42 #76821B #1B825A
split-complementary
#271B82 #825A1B #42821B
monochromatic
#09061D #18104F #271B82 #3626B5 #5240D7
Accessibility & contrast
On white
13.42
#271B82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271B82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B82
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B82 | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271b82; /* rgb */ color: rgb(39, 27, 130); /* oklch */ color: oklch(32.1% 0.161 277.5);
Tailwind
colors: {
custom: {
50: '#705aa7',
500: '#271b82',
950: '#000000',
},
}SCSS
$custom: #271b82; $custom-light: #705aa7; $custom-dark: #000000;
JSON
{
"hex": "#271b82",
"rgb": {
"r": 39,
"g": 27,
"b": 130
},
"hsl": {
"h": 246.99,
"s": 65.605,
"l": 30.784
},
"oklch": {
"l": 0.32138,
"c": 0.16124,
"h": 277.5
},
"luminance": 0.02827
}Semantic roles & 50–950 ramp
primary
#271B82
secondary
#A8B643
accent
#E93FD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F