#271F85#271F85
#271F85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.161 H 276.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #271F85 |
|---|---|
| RGB | rgb(39, 31, 133) |
| HSL | hsl(245, 62%, 32%) |
| HSV | hsv(245, 77%, 52%) |
| CMYK | cmyk(70.7%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.46, 36.94, -55.37) |
| CIE-LCH | lch(20.46, 66.56, 303.71°) |
| OKLab | oklab(33.03% 0.018 -0.16) |
| OKLCH | oklch(33.03% 0.161 276.4) |
| XYZ | xyz(5.5589, 3.1043, 22.4920) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.16
Midnight Blue
#191970
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 5.47
Darkblue
#00008B
ΔE00 5.71
Cobalt Blue
#030AA7
ΔE00 5.86
Navy
#000080
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F85 #7D851F
analogous
#1F4A85 #271F85 #5A1F85
triadic
#271F85 #85271F #1F8527
tetradic
#271F85 #851F4A #7D851F #1F855A
square
#271F85 #851F4A #7D851F #1F855A
split-complementary
#271F85 #855A1F #4A851F
monochromatic
#0A0822 #181353 #271F85 #362BB7 #554AD5
Accessibility & contrast
On white
12.95
#271F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#271F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F85
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F85 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271f85; /* rgb */ color: rgb(39, 31, 133); /* oklch */ color: oklch(33.0% 0.161 276.4);
Tailwind
colors: {
custom: {
50: '#705caa',
500: '#271f85',
950: '#000000',
},
}SCSS
$custom: #271f85; $custom-light: #705caa; $custom-dark: #000000;
JSON
{
"hex": "#271f85",
"rgb": {
"r": 39,
"g": 31,
"b": 133
},
"hsl": {
"h": 244.706,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33027,
"c": 0.16104,
"h": 276.4
},
"luminance": 0.03105
}Semantic roles & 50–950 ramp
primary
#271F85
secondary
#AFB749
accent
#E543D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F