#271B79#271B79
#271B79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.150 H 278.9°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #271B79 |
|---|---|
| RGB | rgb(39, 27, 121) |
| HSL | hsl(248, 64%, 29%) |
| HSV | hsv(248, 78%, 47%) |
| CMYK | cmyk(67.8%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(18.34, 35.21, -51.24) |
| CIE-LCH | lch(18.34, 62.17, 304.50°) |
| OKLab | oklab(31.15% 0.0233 -0.1479) |
| OKLCH | oklch(31.15% 0.15 278.9) |
| XYZ | xyz(4.6787, 2.5953, 18.3398) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.18
Royal
#0C1793
ΔE00 4.41
Dark Royal Blue
#02066F
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.02
Deep Blue
#040273
ΔE00 5.34
Navy
#000080
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B79 #6D791B
analogous
#1B3E79 #271B79 #561B79
triadic
#271B79 #79271B #1B7927
tetradic
#271B79 #791B3E #6D791B #1B7956
square
#271B79 #791B3E #6D791B #1B7956
split-complementary
#271B79 #79561B #3E791B
monochromatic
#080619 #171047 #271B79 #3726AB #4F3BD3
Accessibility & contrast
On white
13.82
#271B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#271B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B79
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B79 | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271b79; /* rgb */ color: rgb(39, 27, 121); /* oklch */ color: oklch(31.1% 0.150 278.9);
Tailwind
colors: {
custom: {
50: '#6e59a1',
500: '#271b79',
950: '#000000',
},
}SCSS
$custom: #271b79; $custom-light: #6e59a1; $custom-dark: #000000;
JSON
{
"hex": "#271b79",
"rgb": {
"r": 39,
"g": 27,
"b": 121
},
"hsl": {
"h": 247.66,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.31146,
"c": 0.14976,
"h": 278.9
},
"luminance": 0.02596
}Semantic roles & 50–950 ramp
primary
#271B79
secondary
#A0AD43
accent
#E741D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F