#271C7E#271C7E
#271C7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.155 H 277.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #271C7E |
|---|---|
| RGB | rgb(39, 28, 126) |
| HSL | hsl(247, 64%, 30%) |
| HSV | hsv(247, 78%, 49%) |
| CMYK | cmyk(69%, 77.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.09, 36.31, -53.20) |
| CIE-LCH | lch(19.09, 64.41, 304.31°) |
| OKLab | oklab(31.83% 0.0214 -0.1537) |
| OKLCH | oklch(31.83% 0.155 277.9) |
| XYZ | xyz(5.0166, 2.7678, 20.0045) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.72
Royal
#0C1793
ΔE00 3.74
Indigo (survey)
#380282
ΔE00 4.97
Dark Royal Blue
#02066F
ΔE00 5.34
Darkblue
#00008B
ΔE00 5.48
Navy
#000080
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C7E #737E1C
analogous
#1C427E #271C7E #581C7E
triadic
#271C7E #7E271C #1C7E27
tetradic
#271C7E #7E1C42 #737E1C #1C7E58
square
#271C7E #7E1C42 #737E1C #1C7E58
split-complementary
#271C7E #7E581C #427E1C
monochromatic
#08061A #18114C #271C7E #3627B0 #5140D5
Accessibility & contrast
On white
13.52
#271C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C7E
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C7E | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271c7e; /* rgb */ color: rgb(39, 28, 126); /* oklch */ color: oklch(31.8% 0.155 277.9);
Tailwind
colors: {
custom: {
50: '#6f5aa4',
500: '#271c7e',
950: '#000000',
},
}SCSS
$custom: #271c7e; $custom-light: #6f5aa4; $custom-dark: #000000;
JSON
{
"hex": "#271c7e",
"rgb": {
"r": 39,
"g": 28,
"b": 126
},
"hsl": {
"h": 246.735,
"s": 63.636,
"l": 30.196
},
"oklch": {
"l": 0.31834,
"c": 0.15516,
"h": 277.9
},
"luminance": 0.02768
}Semantic roles & 50–950 ramp
primary
#271C7E
secondary
#A5B244
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F