#271B7E#271B7E
#271B7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 278.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #271B7E |
|---|---|
| RGB | rgb(39, 27, 126) |
| HSL | hsl(247, 65%, 30%) |
| HSV | hsv(247, 79%, 49%) |
| CMYK | cmyk(69%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(18.89, 36.87, -53.53) |
| CIE-LCH | lch(18.89, 65.00, 304.56°) |
| OKLab | oklab(31.69% 0.022 -0.1546) |
| OKLCH | oklch(31.69% 0.156 278.1) |
| XYZ | xyz(4.9933, 2.7211, 19.9967) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 5.17
Navy
#000080
ΔE00 5.27
Darkblue
#00008B
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B7E #727E1B
analogous
#1B407E #271B7E #591B7E
triadic
#271B7E #7E271B #1B7E27
tetradic
#271B7E #7E1B40 #727E1B #1B7E59
square
#271B7E #7E1B40 #727E1B #1B7E59
split-complementary
#271B7E #7E591B #407E1B
monochromatic
#080519 #17104C #271B7E #3726B0 #503ED6
Accessibility & contrast
On white
13.60
#271B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#271B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B7E
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B7E | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271b7e; /* rgb */ color: rgb(39, 27, 126); /* oklch */ color: oklch(31.7% 0.156 278.1);
Tailwind
colors: {
custom: {
50: '#6f5aa4',
500: '#271b7e',
950: '#000000',
},
}SCSS
$custom: #271b7e; $custom-light: #6f5aa4; $custom-dark: #000000;
JSON
{
"hex": "#271b7e",
"rgb": {
"r": 39,
"g": 27,
"b": 126
},
"hsl": {
"h": 247.273,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.31694,
"c": 0.15618,
"h": 278.1
},
"luminance": 0.02722
}Semantic roles & 50–950 ramp
primary
#271B7E
secondary
#A4B243
accent
#E840D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F