#271B80#271B80
#271B80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.159 H 277.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #271B80 |
|---|---|
| RGB | rgb(39, 27, 128) |
| HSL | hsl(247, 65%, 30%) |
| HSV | hsv(247, 79%, 50%) |
| CMYK | cmyk(69.5%, 78.9%, 0%, 49.8%) |
| CIE-LAB | lab(19.11, 37.53, -54.43) |
| CIE-LCH | lch(19.11, 66.12, 304.59°) |
| OKLab | oklab(31.92% 0.0215 -0.1572) |
| OKLCH | oklch(31.92% 0.159 277.8) |
| XYZ | xyz(5.1237, 2.7733, 20.6832) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Royal
#0C1793
ΔE00 3.41
Indigo (survey)
#380282
ΔE00 4.68
Darkblue
#00008B
ΔE00 5.14
Navy
#000080
ΔE00 5.22
Dark Royal Blue
#02066F
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B80 #74801B
analogous
#1B4180 #271B80 #591B80
triadic
#271B80 #80271B #1B8027
tetradic
#271B80 #801B41 #74801B #1B8059
square
#271B80 #801B41 #74801B #1B8059
split-complementary
#271B80 #80591B #41801B
monochromatic
#08061B #18104D #271B80 #3626B3 #513FD6
Accessibility & contrast
On white
13.51
#271B80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271B80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B80
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B80 | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271b80; /* rgb */ color: rgb(39, 27, 128); /* oklch */ color: oklch(31.9% 0.159 277.8);
Tailwind
colors: {
custom: {
50: '#6f5aa6',
500: '#271b80',
950: '#000000',
},
}SCSS
$custom: #271b80; $custom-light: #6f5aa6; $custom-dark: #000000;
JSON
{
"hex": "#271b80",
"rgb": {
"r": 39,
"g": 27,
"b": 128
},
"hsl": {
"h": 247.129,
"s": 65.161,
"l": 30.392
},
"oklch": {
"l": 0.31916,
"c": 0.15871,
"h": 277.8
},
"luminance": 0.02774
}Semantic roles & 50–950 ramp
primary
#271B80
secondary
#A6B443
accent
#E840D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F