#271C7F#271C7F
#271C7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.156 H 277.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #271C7F |
|---|---|
| RGB | rgb(39, 28, 127) |
| HSL | hsl(247, 64%, 30%) |
| HSV | hsv(247, 78%, 50%) |
| CMYK | cmyk(69.3%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(19.20, 36.64, -53.66) |
| CIE-LCH | lch(19.20, 64.97, 304.33°) |
| OKLab | oklab(31.94% 0.0212 -0.155) |
| OKLCH | oklch(31.94% 0.156 277.8) |
| XYZ | xyz(5.0815, 2.7937, 20.3460) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.85
Royal
#0C1793
ΔE00 3.60
Indigo (survey)
#380282
ΔE00 4.93
Dark Royal Blue
#02066F
ΔE00 5.38
Darkblue
#00008B
ΔE00 5.41
Navy
#000080
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C7F #747F1C
analogous
#1C427F #271C7F #591C7F
triadic
#271C7F #7F271C #1C7F27
tetradic
#271C7F #7F1C42 #747F1C #1C7F59
square
#271C7F #7F1C42 #747F1C #1C7F59
split-complementary
#271C7F #7F591C #427F1C
monochromatic
#08061B #18114D #271C7F #3627B1 #5140D5
Accessibility & contrast
On white
13.47
#271C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C7F
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C7F | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271c7f; /* rgb */ color: rgb(39, 28, 127); /* oklch */ color: oklch(31.9% 0.156 277.8);
Tailwind
colors: {
custom: {
50: '#6f5aa5',
500: '#271c7f',
950: '#000000',
},
}SCSS
$custom: #271c7f; $custom-light: #6f5aa5; $custom-dark: #000000;
JSON
{
"hex": "#271c7f",
"rgb": {
"r": 39,
"g": 28,
"b": 127
},
"hsl": {
"h": 246.667,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.31943,
"c": 0.15644,
"h": 277.8
},
"luminance": 0.02794
}Semantic roles & 50–950 ramp
primary
#271C7F
secondary
#A6B344
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F