#271E7A#271E7A
#271E7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.148 H 278.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #271E7A |
|---|---|
| RGB | rgb(39, 30, 122) |
| HSL | hsl(246, 61%, 30%) |
| HSV | hsv(246, 75%, 48%) |
| CMYK | cmyk(68%, 75.4%, 0%, 52.2%) |
| CIE-LAB | lab(19.08, 33.79, -50.67) |
| CIE-LCH | lch(19.08, 60.91, 303.70°) |
| OKLab | oklab(31.7% 0.021 -0.1463) |
| OKLCH | oklch(31.7% 0.148 278.2) |
| XYZ | xyz(4.8127, 2.7646, 18.6886) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.32
Royal
#0C1793
ΔE00 4.49
Dark Royal Blue
#02066F
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 5.65
Deep Blue
#040273
ΔE00 5.99
Navy
#000080
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E7A #717A1E
analogous
#1E437A #271E7A #551E7A
triadic
#271E7A #7A271E #1E7A27
tetradic
#271E7A #7A1E43 #717A1E #1E7A55
square
#271E7A #7A1E43 #717A1E #1E7A55
split-complementary
#271E7A #7A551E #437A1E
monochromatic
#080619 #171249 #271E7A #372AAB #5042D0
Accessibility & contrast
On white
13.52
#271E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E7A
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E7A | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271e7a; /* rgb */ color: rgb(39, 30, 122); /* oklch */ color: oklch(31.7% 0.148 278.2);
Tailwind
colors: {
custom: {
50: '#6e5ba1',
500: '#271e7a',
950: '#000000',
},
}SCSS
$custom: #271e7a; $custom-light: #6e5ba1; $custom-dark: #000000;
JSON
{
"hex": "#271e7a",
"rgb": {
"r": 39,
"g": 30,
"b": 122
},
"hsl": {
"h": 245.87,
"s": 60.526,
"l": 29.804
},
"oklch": {
"l": 0.31696,
"c": 0.14781,
"h": 278.2
},
"luminance": 0.02765
}Semantic roles & 50–950 ramp
primary
#271E7A
secondary
#A3AE46
accent
#E444D4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F