#271A7E#271A7E
#271A7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.157 H 278.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).
Color values
| HEX | #271A7E |
|---|---|
| RGB | rgb(39, 26, 126) |
| HSL | hsl(248, 66%, 30%) |
| HSV | hsv(248, 79%, 49%) |
| CMYK | cmyk(69%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(18.70, 37.43, -53.85) |
| CIE-LCH | lch(18.70, 65.58, 304.80°) |
| OKLab | oklab(31.56% 0.0226 -0.1555) |
| OKLCH | oklch(31.56% 0.157 278.3) |
| XYZ | xyz(4.9708, 2.6761, 19.9892) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.79
Royal
#0C1793
ΔE00 3.63
Indigo (survey)
#380282
ΔE00 4.54
Dark Royal Blue
#02066F
ΔE00 5.01
Navy
#000080
ΔE00 5.07
Darkblue
#00008B
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A7E #717E1A
analogous
#1A3F7E #271A7E #591A7E
triadic
#271A7E #7E271A #1A7E27
tetradic
#271A7E #7E1A3F #717E1A #1A7E59
square
#271A7E #7E1A3F #717E1A #1A7E59
split-complementary
#271A7E #7E591A #3F7E1A
monochromatic
#080519 #17104B #271A7E #3724B1 #503CD7
Accessibility & contrast
On white
13.68
#271A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#271A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A7E
13.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A7E | 1.00 | 13.68 | 1.54 | 13.68 |
| #FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271a7e; /* rgb */ color: rgb(39, 26, 126); /* oklch */ color: oklch(31.6% 0.157 278.3);
Tailwind
colors: {
custom: {
50: '#6f59a4',
500: '#271a7e',
950: '#000000',
},
}SCSS
$custom: #271a7e; $custom-light: #6f59a4; $custom-dark: #000000;
JSON
{
"hex": "#271a7e",
"rgb": {
"r": 39,
"g": 26,
"b": 126
},
"hsl": {
"h": 247.8,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.31558,
"c": 0.15718,
"h": 278.3
},
"luminance": 0.02676
}Semantic roles & 50–950 ramp
primary
#271A7E
secondary
#A3B242
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F