#271C82#271C82
#271C82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.160 H 277.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #271C82 |
|---|---|
| RGB | rgb(39, 28, 130) |
| HSL | hsl(246, 65%, 31%) |
| HSV | hsv(246, 78%, 51%) |
| CMYK | cmyk(70%, 78.5%, 0%, 49%) |
| CIE-LAB | lab(19.53, 37.64, -55.01) |
| CIE-LCH | lch(19.53, 66.66, 304.38°) |
| OKLab | oklab(32.27% 0.0204 -0.1589) |
| OKLCH | oklch(32.27% 0.16 277.3) |
| XYZ | xyz(5.2799, 2.8731, 21.3911) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.21
Midnight Blue
#191970
ΔE00 3.24
Indigo (survey)
#380282
ΔE00 4.84
Darkblue
#00008B
ΔE00 5.22
Navy
#000080
ΔE00 5.39
Dark Royal Blue
#02066F
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C82 #77821C
analogous
#1C4482 #271C82 #5A1C82
triadic
#271C82 #82271C #1C8227
tetradic
#271C82 #821C44 #77821C #1C825A
square
#271C82 #821C44 #77821C #1C825A
split-complementary
#271C82 #825A1C #44821C
monochromatic
#09061D #181150 #271C82 #3627B4 #5242D6
Accessibility & contrast
On white
13.34
#271C82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271C82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C82
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C82 | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271c82; /* rgb */ color: rgb(39, 28, 130); /* oklch */ color: oklch(32.3% 0.160 277.3);
Tailwind
colors: {
custom: {
50: '#705aa7',
500: '#271c82',
950: '#000000',
},
}SCSS
$custom: #271c82; $custom-light: #705aa7; $custom-dark: #000000;
JSON
{
"hex": "#271c82",
"rgb": {
"r": 39,
"g": 28,
"b": 130
},
"hsl": {
"h": 246.471,
"s": 64.557,
"l": 30.98
},
"oklch": {
"l": 0.32274,
"c": 0.16026,
"h": 277.3
},
"luminance": 0.02874
}Semantic roles & 50–950 ramp
primary
#271C82
secondary
#A9B544
accent
#E840D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F