#271C87#271C87
#271C87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.167 H 276.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #271C87 |
|---|---|
| RGB | rgb(39, 28, 135) |
| HSL | hsl(246, 66%, 32%) |
| HSV | hsv(246, 79%, 53%) |
| CMYK | cmyk(71.1%, 79.3%, 0%, 47.1%) |
| CIE-LAB | lab(20.09, 39.29, -57.24) |
| CIE-LCH | lch(20.09, 69.43, 304.47°) |
| OKLab | oklab(32.83% 0.0192 -0.1654) |
| OKLCH | oklch(32.83% 0.167 276.6) |
| XYZ | xyz(5.6237, 3.0106, 23.2017) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.64
Midnight Blue
#191970
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 4.80
Darkblue
#00008B
ΔE00 5.00
Cobalt Blue
#030AA7
ΔE00 5.21
Navy
#000080
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C87 #7C871C
analogous
#1C4787 #271C87 #5D1C87
triadic
#271C87 #87271C #1C8727
tetradic
#271C87 #871C47 #7C871C #1C875D
square
#271C87 #871C47 #7C871C #1C875D
split-complementary
#271C87 #875D1C #47871C
monochromatic
#0A0722 #181154 #271C87 #3627BA #5445D8
Accessibility & contrast
On white
13.11
#271C87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#271C87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C87
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C87 | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271c87; /* rgb */ color: rgb(39, 28, 135); /* oklch */ color: oklch(32.8% 0.167 276.6);
Tailwind
colors: {
custom: {
50: '#715bab',
500: '#271c87',
950: '#000000',
},
}SCSS
$custom: #271c87; $custom-light: #715bab; $custom-dark: #000000;
JSON
{
"hex": "#271c87",
"rgb": {
"r": 39,
"g": 28,
"b": 135
},
"hsl": {
"h": 246.168,
"s": 65.644,
"l": 31.961
},
"oklch": {
"l": 0.32832,
"c": 0.16655,
"h": 276.6
},
"luminance": 0.03011
}Semantic roles & 50–950 ramp
primary
#271C87
secondary
#AEBA45
accent
#E93FD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F