#271F84#271F84
#271F84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.160 H 276.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #271F84 |
|---|---|
| RGB | rgb(39, 31, 132) |
| HSL | hsl(245, 62%, 32%) |
| HSV | hsv(245, 77%, 52%) |
| CMYK | cmyk(70.5%, 76.5%, 0%, 48.2%) |
| CIE-LAB | lab(20.35, 36.60, -54.92) |
| CIE-LCH | lch(20.35, 66.00, 303.68°) |
| OKLab | oklab(32.92% 0.0182 -0.1587) |
| OKLCH | oklch(32.92% 0.16 276.5) |
| XYZ | xyz(5.4902, 3.0768, 22.1299) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.27
Midnight Blue
#191970
ΔE00 3.55
Indigo (survey)
#380282
ΔE00 5.48
Darkblue
#00008B
ΔE00 5.76
Cobalt Blue
#030AA7
ΔE00 5.99
Navy
#000080
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F84 #7C841F
analogous
#1F4A84 #271F84 #591F84
triadic
#271F84 #84271F #1F8427
tetradic
#271F84 #841F4A #7C841F #1F8459
square
#271F84 #841F4A #7C841F #1F8459
split-complementary
#271F84 #84591F #4A841F
monochromatic
#0A0821 #181352 #271F84 #362BB6 #5449D4
Accessibility & contrast
On white
13.00
#271F84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#271F84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F84
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F84 | 1.00 | 13.00 | 1.62 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271f84; /* rgb */ color: rgb(39, 31, 132); /* oklch */ color: oklch(32.9% 0.160 276.5);
Tailwind
colors: {
custom: {
50: '#705ca9',
500: '#271f84',
950: '#000000',
},
}SCSS
$custom: #271f84; $custom-light: #705ca9; $custom-dark: #000000;
JSON
{
"hex": "#271f84",
"rgb": {
"r": 39,
"g": 31,
"b": 132
},
"hsl": {
"h": 244.752,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.32918,
"c": 0.15975,
"h": 276.5
},
"luminance": 0.03077
}Semantic roles & 50–950 ramp
primary
#271F84
secondary
#AEB748
accent
#E543D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F