#271F86#271F86
#271F86 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.162 H 276.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #271F86 |
|---|---|
| RGB | rgb(39, 31, 134) |
| HSL | hsl(245, 62%, 32%) |
| HSV | hsv(245, 77%, 53%) |
| CMYK | cmyk(70.9%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.57, 37.28, -55.82) |
| CIE-LCH | lch(20.57, 67.13, 303.74°) |
| OKLab | oklab(33.14% 0.0177 -0.1613) |
| OKLCH | oklch(33.14% 0.162 276.3) |
| XYZ | xyz(5.6284, 3.1320, 22.8576) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.06
Midnight Blue
#191970
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 5.46
Darkblue
#00008B
ΔE00 5.67
Cobalt Blue
#030AA7
ΔE00 5.73
Navy
#000080
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F86 #7E861F
analogous
#1F4B86 #271F86 #5A1F86
triadic
#271F86 #86271F #1F8627
tetradic
#271F86 #861F4B #7E861F #1F865A
square
#271F86 #861F4B #7E861F #1F865A
split-complementary
#271F86 #865A1F #4B861F
monochromatic
#0A0823 #191454 #271F86 #352AB8 #554AD5
Accessibility & contrast
On white
12.91
#271F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#271F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F86
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F86 | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #271f86; /* rgb */ color: rgb(39, 31, 134); /* oklch */ color: oklch(33.1% 0.162 276.3);
Tailwind
colors: {
custom: {
50: '#705caa',
500: '#271f86',
950: '#000000',
},
}SCSS
$custom: #271f86; $custom-light: #705caa; $custom-dark: #000000;
JSON
{
"hex": "#271f86",
"rgb": {
"r": 39,
"g": 31,
"b": 134
},
"hsl": {
"h": 244.66,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33136,
"c": 0.16231,
"h": 276.3
},
"luminance": 0.03133
}Semantic roles & 50–950 ramp
primary
#271F86
secondary
#AFB849
accent
#E542D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F