#271C7D#271C7D
#271C7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.154 H 278.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #271C7D |
|---|---|
| RGB | rgb(39, 28, 125) |
| HSL | hsl(247, 63%, 30%) |
| HSV | hsv(247, 78%, 49%) |
| CMYK | cmyk(68.8%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(18.98, 35.98, -52.74) |
| CIE-LCH | lch(18.98, 63.84, 304.30°) |
| OKLab | oklab(31.72% 0.0217 -0.1523) |
| OKLCH | oklch(31.72% 0.154 278.1) |
| XYZ | xyz(4.9524, 2.7421, 19.6664) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Royal
#0C1793
ΔE00 3.88
Indigo (survey)
#380282
ΔE00 5.01
Dark Royal Blue
#02066F
ΔE00 5.30
Navy
#000080
ΔE00 5.52
Darkblue
#00008B
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C7D #727D1C
analogous
#1C427D #271C7D #571C7D
triadic
#271C7D #7D271C #1C7D27
tetradic
#271C7D #7D1C42 #727D1C #1C7D57
square
#271C7D #7D1C42 #727D1C #1C7D57
split-complementary
#271C7D #7D571C #427D1C
monochromatic
#080619 #17114B #271C7D #3727AF #503FD4
Accessibility & contrast
On white
13.56
#271C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C7D
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C7D | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271c7d; /* rgb */ color: rgb(39, 28, 125); /* oklch */ color: oklch(31.7% 0.154 278.1);
Tailwind
colors: {
custom: {
50: '#6e5aa4',
500: '#271c7d',
950: '#000000',
},
}SCSS
$custom: #271c7d; $custom-light: #6e5aa4; $custom-dark: #000000;
JSON
{
"hex": "#271c7d",
"rgb": {
"r": 39,
"g": 28,
"b": 125
},
"hsl": {
"h": 246.804,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.31724,
"c": 0.15387,
"h": 278.1
},
"luminance": 0.02743
}Semantic roles & 50–950 ramp
primary
#271C7D
secondary
#A4B144
accent
#E641D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F