#271C85#271C85
#271C85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.164 H 276.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #271C85 |
|---|---|
| RGB | rgb(39, 28, 133) |
| HSL | hsl(246, 65%, 32%) |
| HSV | hsv(246, 79%, 52%) |
| CMYK | cmyk(70.7%, 78.9%, 0%, 47.8%) |
| CIE-LAB | lab(19.86, 38.63, -56.35) |
| CIE-LCH | lch(19.86, 68.32, 304.43°) |
| OKLab | oklab(32.61% 0.0197 -0.1629) |
| OKLCH | oklch(32.61% 0.164 276.9) |
| XYZ | xyz(5.4842, 2.9548, 22.4671) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Midnight Blue
#191970
ΔE00 3.65
Indigo (survey)
#380282
ΔE00 4.80
Darkblue
#00008B
ΔE00 5.07
Navy
#000080
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C85 #7A851C
analogous
#1C4685 #271C85 #5C1C85
triadic
#271C85 #85271C #1C8527
tetradic
#271C85 #851C46 #7A851C #1C855C
square
#271C85 #851C46 #7A851C #1C855C
split-complementary
#271C85 #855C1C #46851C
monochromatic
#090720 #181152 #271C85 #3627B8 #5344D8
Accessibility & contrast
On white
13.20
#271C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C85
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C85 | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271c85; /* rgb */ color: rgb(39, 28, 133); /* oklch */ color: oklch(32.6% 0.164 276.9);
Tailwind
colors: {
custom: {
50: '#705baa',
500: '#271c85',
950: '#000000',
},
}SCSS
$custom: #271c85; $custom-light: #705baa; $custom-dark: #000000;
JSON
{
"hex": "#271c85",
"rgb": {
"r": 39,
"g": 28,
"b": 133
},
"hsl": {
"h": 246.286,
"s": 65.217,
"l": 31.569
},
"oklch": {
"l": 0.32608,
"c": 0.16404,
"h": 276.9
},
"luminance": 0.02955
}Semantic roles & 50–950 ramp
primary
#271C85
secondary
#ACB845
accent
#E840D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F