#271C7A#271C7A
#271C7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.150 H 278.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #271C7A |
|---|---|
| RGB | rgb(39, 28, 122) |
| HSL | hsl(247, 63%, 29%) |
| HSV | hsv(247, 77%, 48%) |
| CMYK | cmyk(68%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(18.66, 34.97, -51.36) |
| CIE-LCH | lch(18.66, 62.14, 304.25°) |
| OKLab | oklab(31.4% 0.0224 -0.1483) |
| OKLCH | oklch(31.4% 0.15 278.6) |
| XYZ | xyz(4.7637, 2.6666, 18.6722) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.26
Royal
#0C1793
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 5.18
Dark Royal Blue
#02066F
ΔE00 5.21
Deep Blue
#040273
ΔE00 5.55
Navy
#000080
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C7A #6F7A1C
analogous
#1C407A #271C7A #561C7A
triadic
#271C7A #7A271C #1C7A27
tetradic
#271C7A #7A1C40 #6F7A1C #1C7A56
square
#271C7A #7A1C40 #6F7A1C #1C7A56
split-complementary
#271C7A #7A561C #407A1C
monochromatic
#080619 #171148 #271C7A #3727AC #4F3ED3
Accessibility & contrast
On white
13.70
#271C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#271C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C7A
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C7A | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271c7a; /* rgb */ color: rgb(39, 28, 122); /* oklch */ color: oklch(31.4% 0.150 278.6);
Tailwind
colors: {
custom: {
50: '#6e5aa1',
500: '#271c7a',
950: '#000000',
},
}SCSS
$custom: #271c7a; $custom-light: #6e5aa1; $custom-dark: #000000;
JSON
{
"hex": "#271c7a",
"rgb": {
"r": 39,
"g": 28,
"b": 122
},
"hsl": {
"h": 247.021,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.31399,
"c": 0.15,
"h": 278.6
},
"luminance": 0.02667
}Semantic roles & 50–950 ramp
primary
#271C7A
secondary
#A2AE44
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F