#271C88#271C88
#271C88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 276.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #271C88 |
|---|---|
| RGB | rgb(39, 28, 136) |
| HSL | hsl(246, 66%, 32%) |
| HSV | hsv(246, 79%, 53%) |
| CMYK | cmyk(71.3%, 79.4%, 0%, 46.7%) |
| CIE-LAB | lab(20.20, 39.62, -57.68) |
| CIE-LCH | lch(20.20, 69.98, 304.48°) |
| OKLab | oklab(32.94% 0.0189 -0.1667) |
| OKLCH | oklch(32.94% 0.168 276.5) |
| XYZ | xyz(5.6944, 3.0389, 23.5742) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.54
Midnight Blue
#191970
ΔE00 4.06
Indigo (survey)
#380282
ΔE00 4.81
Darkblue
#00008B
ΔE00 4.98
Cobalt Blue
#030AA7
ΔE00 5.08
Navy
#000080
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C88 #7D881C
analogous
#1C4788 #271C88 #5D1C88
triadic
#271C88 #88271C #1C8827
tetradic
#271C88 #881C47 #7D881C #1C885D
square
#271C88 #881C47 #7D881C #1C885D
split-complementary
#271C88 #885D1C #47881C
monochromatic
#0A0722 #181255 #271C88 #3626BB #5546D9
Accessibility & contrast
On white
13.06
#271C88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#271C88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C88
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C88 | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271c88; /* rgb */ color: rgb(39, 28, 136); /* oklch */ color: oklch(32.9% 0.168 276.5);
Tailwind
colors: {
custom: {
50: '#715bac',
500: '#271c88',
950: '#000000',
},
}SCSS
$custom: #271c88; $custom-light: #715bac; $custom-dark: #000000;
JSON
{
"hex": "#271c88",
"rgb": {
"r": 39,
"g": 28,
"b": 136
},
"hsl": {
"h": 246.111,
"s": 65.854,
"l": 32.157
},
"oklch": {
"l": 0.32944,
"c": 0.16779,
"h": 276.5
},
"luminance": 0.03039
}Semantic roles & 50–950 ramp
primary
#271C88
secondary
#AFBA45
accent
#E93FD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F