#271A7C#271A7C
#271A7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 278.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).
Color values
| HEX | #271A7C |
|---|---|
| RGB | rgb(39, 26, 124) |
| HSL | hsl(248, 65%, 29%) |
| HSV | hsv(248, 79%, 49%) |
| CMYK | cmyk(68.5%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(18.47, 36.77, -52.94) |
| CIE-LCH | lch(18.47, 64.45, 304.78°) |
| OKLab | oklab(31.34% 0.0232 -0.1529) |
| OKLCH | oklch(31.34% 0.155 278.6) |
| XYZ | xyz(4.8430, 2.6250, 19.3163) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.54
Royal
#0C1793
ΔE00 3.91
Indigo (survey)
#380282
ΔE00 4.63
Dark Royal Blue
#02066F
ΔE00 4.92
Navy
#000080
ΔE00 5.14
Deep Blue
#040273
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271A7C #6F7C1A
analogous
#1A3E7C #271A7C #581A7C
triadic
#271A7C #7C271A #1A7C27
tetradic
#271A7C #7C1A3E #6F7C1A #1A7C58
square
#271A7C #7C1A3E #6F7C1A #1A7C58
split-complementary
#271A7C #7C581A #3E7C1A
monochromatic
#080519 #170F49 #271A7C #3725AF #4F3BD6
Accessibility & contrast
On white
13.77
#271A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#271A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271A7C
13.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271A7C | 1.00 | 13.77 | 1.53 | 13.77 |
| #FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271a7c; /* rgb */ color: rgb(39, 26, 124); /* oklch */ color: oklch(31.3% 0.155 278.6);
Tailwind
colors: {
custom: {
50: '#6e59a3',
500: '#271a7c',
950: '#000000',
},
}SCSS
$custom: #271a7c; $custom-light: #6e59a3; $custom-dark: #000000;
JSON
{
"hex": "#271a7c",
"rgb": {
"r": 39,
"g": 26,
"b": 124
},
"hsl": {
"h": 247.959,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.31336,
"c": 0.15463,
"h": 278.6
},
"luminance": 0.02625
}Semantic roles & 50–950 ramp
primary
#271A7C
secondary
#A2B042
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F