#271F87#271F87
#271F87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.164 H 276.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #271F87 |
|---|---|
| RGB | rgb(39, 31, 135) |
| HSL | hsl(245, 63%, 33%) |
| HSV | hsv(245, 77%, 53%) |
| CMYK | cmyk(71.1%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(20.67, 37.62, -56.27) |
| CIE-LCH | lch(20.67, 67.68, 303.76°) |
| OKLab | oklab(33.25% 0.0175 -0.1626) |
| OKLCH | oklch(33.25% 0.164 276.2) |
| XYZ | xyz(5.6984, 3.1601, 23.2266) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.95
Midnight Blue
#191970
ΔE00 3.95
Indigo (survey)
#380282
ΔE00 5.45
Cobalt Blue
#030AA7
ΔE00 5.60
Darkblue
#00008B
ΔE00 5.64
Navy
#000080
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F87 #7F871F
analogous
#1F4B87 #271F87 #5B1F87
triadic
#271F87 #87271F #1F8727
tetradic
#271F87 #871F4B #7F871F #1F875B
square
#271F87 #871F4B #7F871F #1F875B
split-complementary
#271F87 #875B1F #4B871F
monochromatic
#0A0823 #191455 #271F87 #352AB9 #554BD6
Accessibility & contrast
On white
12.87
#271F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#271F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F87
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F87 | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #271f87; /* rgb */ color: rgb(39, 31, 135); /* oklch */ color: oklch(33.2% 0.164 276.2);
Tailwind
colors: {
custom: {
50: '#705dab',
500: '#271f87',
950: '#000000',
},
}SCSS
$custom: #271f87; $custom-light: #705dab; $custom-dark: #000000;
JSON
{
"hex": "#271f87",
"rgb": {
"r": 39,
"g": 31,
"b": 135
},
"hsl": {
"h": 244.615,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.33245,
"c": 0.16359,
"h": 276.2
},
"luminance": 0.03161
}Semantic roles & 50–950 ramp
primary
#271F87
secondary
#B0B84A
accent
#E642D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F