#271C79#271C79
#271C79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 278.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).
Color values
| HEX | #271C79 |
|---|---|
| RGB | rgb(39, 28, 121) |
| HSL | hsl(247, 62%, 29%) |
| HSV | hsv(247, 77%, 47%) |
| CMYK | cmyk(67.8%, 76.9%, 0%, 52.5%) |
| CIE-LAB | lab(18.55, 34.63, -50.90) |
| CIE-LCH | lch(18.55, 61.57, 304.23°) |
| OKLab | oklab(31.29% 0.0226 -0.147) |
| OKLCH | oklch(31.29% 0.149 278.7) |
| XYZ | xyz(4.7020, 2.6419, 18.3476) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.16
Royal
#0C1793
ΔE00 4.47
Dark Royal Blue
#02066F
ΔE00 5.19
Indigo (survey)
#380282
ΔE00 5.24
Deep Blue
#040273
ΔE00 5.55
Navy
#000080
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C79 #6E791C
analogous
#1C4079 #271C79 #561C79
triadic
#271C79 #79271C #1C7927
tetradic
#271C79 #791C40 #6E791C #1C7956
square
#271C79 #791C40 #6E791C #1C7956
split-complementary
#271C79 #79561C #40791C
monochromatic
#080619 #171047 #271C79 #3728AB #4F3DD2
Accessibility & contrast
On white
13.74
#271C79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#271C79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C79
13.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C79 | 1.00 | 13.74 | 1.53 | 13.74 |
| #FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271c79; /* rgb */ color: rgb(39, 28, 121); /* oklch */ color: oklch(31.3% 0.149 278.7);
Tailwind
colors: {
custom: {
50: '#6d5aa1',
500: '#271c79',
950: '#000000',
},
}SCSS
$custom: #271c79; $custom-light: #6d5aa1; $custom-dark: #000000;
JSON
{
"hex": "#271c79",
"rgb": {
"r": 39,
"g": 28,
"b": 121
},
"hsl": {
"h": 247.097,
"s": 62.416,
"l": 29.216
},
"oklch": {
"l": 0.31291,
"c": 0.1487,
"h": 278.7
},
"luminance": 0.02642
}Semantic roles & 50–950 ramp
primary
#271C79
secondary
#A1AD44
accent
#E542D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F