#271B85#271B85
#271B85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.165 H 277.0°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).
Color values
| HEX | #271B85 |
|---|---|
| RGB | rgb(39, 27, 133) |
| HSL | hsl(247, 66%, 31%) |
| HSV | hsv(247, 80%, 52%) |
| CMYK | cmyk(70.7%, 79.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.67, 39.17, -56.67) |
| CIE-LCH | lch(19.67, 68.89, 304.66°) |
| OKLab | oklab(32.48% 0.0202 -0.1638) |
| OKLCH | oklch(32.48% 0.165 277) |
| XYZ | xyz(5.4609, 2.9082, 22.4593) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Midnight Blue
#191970
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 4.60
Darkblue
#00008B
ΔE00 4.87
Navy
#000080
ΔE00 5.18
Cobalt Blue
#030AA7
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B85 #79851B
analogous
#1B4485 #271B85 #5C1B85
triadic
#271B85 #85271B #1B8527
tetradic
#271B85 #851B44 #79851B #1B855C
square
#271B85 #851B44 #79851B #1B855C
split-complementary
#271B85 #855C1B #44851B
monochromatic
#09061F #181152 #271B85 #3625B8 #5342D9
Accessibility & contrast
On white
13.28
#271B85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#271B85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B85
13.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B85 | 1.00 | 13.28 | 1.58 | 13.28 |
| #FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271b85; /* rgb */ color: rgb(39, 27, 133); /* oklch */ color: oklch(32.5% 0.165 277.0);
Tailwind
colors: {
custom: {
50: '#705aaa',
500: '#271b85',
950: '#000000',
},
}SCSS
$custom: #271b85; $custom-light: #705aaa; $custom-dark: #000000;
JSON
{
"hex": "#271b85",
"rgb": {
"r": 39,
"g": 27,
"b": 133
},
"hsl": {
"h": 246.792,
"s": 66.25,
"l": 31.373
},
"oklch": {
"l": 0.32475,
"c": 0.165,
"h": 277
},
"luminance": 0.02909
}Semantic roles & 50–950 ramp
primary
#271B85
secondary
#ABB844
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F