#271A7F#271A7F
#271A7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 278.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #271A7F |
|---|---|
| RGB | rgb(39, 26, 127) |
| HSL | hsl(248, 66%, 30%) |
| HSV | hsv(248, 80%, 50%) |
| CMYK | cmyk(69.3%, 79.5%, 0%, 50.2%) |
| CIE-LAB | lab(18.81, 37.75, -54.30) |
| CIE-LCH | lch(18.81, 66.13, 304.81°) |
| OKLab | oklab(31.67% 0.0223 -0.1568) |
| OKLCH | oklch(31.67% 0.158 278.1) |
| XYZ | xyz(5.0356, 2.7020, 20.3307) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.91
Royal
#0C1793
ΔE00 3.49
Indigo (survey)
#380282
ΔE00 4.50
Darkblue
#00008B
ΔE00 5.01
Navy
#000080
ΔE00 5.04
Dark Royal Blue
#02066F
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A7F #727F1A
analogous
#1A3F7F #271A7F #5A1A7F
triadic
#271A7F #7F271A #1A7F27
tetradic
#271A7F #7F1A3F #727F1A #1A7F5A
square
#271A7F #7F1A3F #727F1A #1A7F5A
split-complementary
#271A7F #7F5A1A #3F7F1A
monochromatic
#080519 #17104C #271A7F #3724B2 #503CD7
Accessibility & contrast
On white
13.63
#271A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#271A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A7F
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A7F | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271a7f; /* rgb */ color: rgb(39, 26, 127); /* oklch */ color: oklch(31.7% 0.158 278.1);
Tailwind
colors: {
custom: {
50: '#6f59a5',
500: '#271a7f',
950: '#000000',
},
}SCSS
$custom: #271a7f; $custom-light: #6f59a5; $custom-dark: #000000;
JSON
{
"hex": "#271a7f",
"rgb": {
"r": 39,
"g": 26,
"b": 127
},
"hsl": {
"h": 247.723,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.3167,
"c": 0.15843,
"h": 278.1
},
"luminance": 0.02702
}Semantic roles & 50–950 ramp
primary
#271A7F
secondary
#A4B342
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F