#271A82#271A82
#271A82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.162 H 277.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #271A82 |
|---|---|
| RGB | rgb(39, 26, 130) |
| HSL | hsl(248, 67%, 31%) |
| HSV | hsv(248, 80%, 51%) |
| CMYK | cmyk(70%, 80%, 0%, 49%) |
| CIE-LAB | lab(19.15, 38.73, -55.64) |
| CIE-LCH | lch(19.15, 67.80, 304.84°) |
| OKLab | oklab(32.01% 0.0215 -0.1608) |
| OKLCH | oklch(32.01% 0.162 277.6) |
| XYZ | xyz(5.2341, 2.7814, 21.3758) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.10
Midnight Blue
#191970
ΔE00 3.30
Indigo (survey)
#380282
ΔE00 4.43
Darkblue
#00008B
ΔE00 4.82
Navy
#000080
ΔE00 4.99
Dark Royal Blue
#02066F
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A82 #75821A
analogous
#1A4182 #271A82 #5B1A82
triadic
#271A82 #82271A #1A8227
tetradic
#271A82 #821A41 #75821A #1A825B
square
#271A82 #821A41 #75821A #1A825B
split-complementary
#271A82 #825B1A #41821A
monochromatic
#08061C #18104F #271A82 #3624B5 #513ED8
Accessibility & contrast
On white
13.49
#271A82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271A82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A82
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A82 | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271a82; /* rgb */ color: rgb(39, 26, 130); /* oklch */ color: oklch(32.0% 0.162 277.6);
Tailwind
colors: {
custom: {
50: '#7059a7',
500: '#271a82',
950: '#000000',
},
}SCSS
$custom: #271a82; $custom-light: #7059a7; $custom-dark: #000000;
JSON
{
"hex": "#271a82",
"rgb": {
"r": 39,
"g": 26,
"b": 130
},
"hsl": {
"h": 247.5,
"s": 66.667,
"l": 30.588
},
"oklch": {
"l": 0.32006,
"c": 0.1622,
"h": 277.6
},
"luminance": 0.02782
}Semantic roles & 50–950 ramp
primary
#271A82
secondary
#A7B642
accent
#EA3ED4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F