#271B84#271B84
#271B84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.164 H 277.2°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #271B84 |
|---|---|
| RGB | rgb(39, 27, 132) |
| HSL | hsl(247, 66%, 31%) |
| HSV | hsv(247, 80%, 52%) |
| CMYK | cmyk(70.5%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(19.56, 38.85, -56.22) |
| CIE-LCH | lch(19.56, 68.34, 304.64°) |
| OKLab | oklab(32.36% 0.0205 -0.1625) |
| OKLCH | oklch(32.36% 0.164 277.2) |
| XYZ | xyz(5.3921, 2.8807, 22.0972) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.90
Midnight Blue
#191970
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 4.60
Darkblue
#00008B
ΔE00 4.92
Navy
#000080
ΔE00 5.18
Cobalt Blue
#030AA7
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B84 #78841B
analogous
#1B4384 #271B84 #5B1B84
triadic
#271B84 #84271B #1B8427
tetradic
#271B84 #841B43 #78841B #1B845B
square
#271B84 #841B43 #78841B #1B845B
split-complementary
#271B84 #845B1B #43841B
monochromatic
#09061E #181151 #271B84 #3625B7 #5241D8
Accessibility & contrast
On white
13.32
#271B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#271B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B84
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B84 | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271b84; /* rgb */ color: rgb(39, 27, 132); /* oklch */ color: oklch(32.4% 0.164 277.2);
Tailwind
colors: {
custom: {
50: '#705aa9',
500: '#271b84',
950: '#000000',
},
}SCSS
$custom: #271b84; $custom-light: #705aa9; $custom-dark: #000000;
JSON
{
"hex": "#271b84",
"rgb": {
"r": 39,
"g": 27,
"b": 132
},
"hsl": {
"h": 246.857,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.32362,
"c": 0.16374,
"h": 277.2
},
"luminance": 0.02881
}Semantic roles & 50–950 ramp
primary
#271B84
secondary
#AAB743
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F