#271D7F#271D7F
#271D7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 277.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #271D7F |
|---|---|
| RGB | rgb(39, 29, 127) |
| HSL | hsl(246, 63%, 31%) |
| HSV | hsv(246, 77%, 50%) |
| CMYK | cmyk(69.3%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(19.40, 36.07, -53.32) |
| CIE-LCH | lch(19.40, 64.38, 304.08°) |
| OKLab | oklab(32.09% 0.0206 -0.154) |
| OKLCH | oklch(32.09% 0.155 277.6) |
| XYZ | xyz(5.1056, 2.8419, 20.3540) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.85
Royal
#0C1793
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 5.15
Dark Royal Blue
#02066F
ΔE00 5.56
Darkblue
#00008B
ΔE00 5.61
Navy
#000080
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271D7F #757F1D
analogous
#1D447F #271D7F #581D7F
triadic
#271D7F #7F271D #1D7F27
tetradic
#271D7F #7F1D44 #757F1D #1D7F58
square
#271D7F #7F1D44 #757F1D #1D7F58
split-complementary
#271D7F #7F581D #447F1D
monochromatic
#08061B #18124D #271D7F #3628B1 #5142D4
Accessibility & contrast
On white
13.39
#271D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271D7F
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271D7F | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271d7f; /* rgb */ color: rgb(39, 29, 127); /* oklch */ color: oklch(32.1% 0.155 277.6);
Tailwind
colors: {
custom: {
50: '#6f5ba5',
500: '#271d7f',
950: '#000000',
},
}SCSS
$custom: #271d7f; $custom-light: #6f5ba5; $custom-dark: #000000;
JSON
{
"hex": "#271d7f",
"rgb": {
"r": 39,
"g": 29,
"b": 127
},
"hsl": {
"h": 246.122,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.32085,
"c": 0.15541,
"h": 277.6
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#271D7F
secondary
#A7B245
accent
#E642D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F