#271B87#271B87
#271B87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.167 H 276.7°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #271B87 |
|---|---|
| RGB | rgb(39, 27, 135) |
| HSL | hsl(247, 67%, 32%) |
| HSV | hsv(247, 80%, 53%) |
| CMYK | cmyk(71.1%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(19.90, 39.83, -57.55) |
| CIE-LCH | lch(19.90, 69.99, 304.68°) |
| OKLab | oklab(32.7% 0.0197 -0.1663) |
| OKLCH | oklch(32.7% 0.167 276.7) |
| XYZ | xyz(5.6004, 2.9640, 23.1939) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.57
Midnight Blue
#191970
ΔE00 3.95
Indigo (survey)
#380282
ΔE00 4.60
Darkblue
#00008B
ΔE00 4.81
Cobalt Blue
#030AA7
ΔE00 5.10
Navy
#000080
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B87 #7B871B
analogous
#1B4587 #271B87 #5D1B87
triadic
#271B87 #87271B #1B8727
tetradic
#271B87 #871B45 #7B871B #1B875D
square
#271B87 #871B45 #7B871B #1B875D
split-complementary
#271B87 #875D1B #45871B
monochromatic
#0A0721 #181154 #271B87 #3625BA #5443D9
Accessibility & contrast
On white
13.18
#271B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B87
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B87 | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271b87; /* rgb */ color: rgb(39, 27, 135); /* oklch */ color: oklch(32.7% 0.167 276.7);
Tailwind
colors: {
custom: {
50: '#715aab',
500: '#271b87',
950: '#000000',
},
}SCSS
$custom: #271b87; $custom-light: #715aab; $custom-dark: #000000;
JSON
{
"hex": "#271b87",
"rgb": {
"r": 39,
"g": 27,
"b": 135
},
"hsl": {
"h": 246.667,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.327,
"c": 0.16749,
"h": 276.7
},
"luminance": 0.02964
}Semantic roles & 50–950 ramp
primary
#271B87
secondary
#ADBA44
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F