#271A7B#271A7B
#271A7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.153 H 278.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #271A7B |
|---|---|
| RGB | rgb(39, 26, 123) |
| HSL | hsl(248, 65%, 29%) |
| HSV | hsv(248, 79%, 48%) |
| CMYK | cmyk(68.3%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(18.36, 36.44, -52.48) |
| CIE-LCH | lch(18.36, 63.89, 304.77°) |
| OKLab | oklab(31.23% 0.0234 -0.1516) |
| OKLCH | oklch(31.23% 0.153 278.8) |
| XYZ | xyz(4.7801, 2.5998, 18.9850) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.43
Royal
#0C1793
ΔE00 4.06
Indigo (survey)
#380282
ΔE00 4.68
Dark Royal Blue
#02066F
ΔE00 4.88
Deep Blue
#040273
ΔE00 5.14
Navy
#000080
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A7B #6E7B1A
analogous
#1A3E7B #271A7B #581A7B
triadic
#271A7B #7B271A #1A7B27
tetradic
#271A7B #7B1A3E #6E7B1A #1A7B58
square
#271A7B #7B1A3E #6E7B1A #1A7B58
split-complementary
#271A7B #7B581A #3E7B1A
monochromatic
#080519 #170F48 #271A7B #3725AE #4F3AD5
Accessibility & contrast
On white
13.82
#271A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#271A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A7B
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A7B | 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)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271a7b; /* rgb */ color: rgb(39, 26, 123); /* oklch */ color: oklch(31.2% 0.153 278.8);
Tailwind
colors: {
custom: {
50: '#6e59a2',
500: '#271a7b',
950: '#000000',
},
}SCSS
$custom: #271a7b; $custom-light: #6e59a2; $custom-dark: #000000;
JSON
{
"hex": "#271a7b",
"rgb": {
"r": 39,
"g": 26,
"b": 123
},
"hsl": {
"h": 248.041,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.31225,
"c": 0.15337,
"h": 278.8
},
"luminance": 0.026
}Semantic roles & 50–950 ramp
primary
#271A7B
secondary
#A1AF42
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F