#271C96#271C96
#271C96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.185 H 274.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #271C96 |
|---|---|
| RGB | rgb(39, 28, 150) |
| HSL | hsl(245, 69%, 35%) |
| HSV | hsv(245, 81%, 59%) |
| CMYK | cmyk(74%, 81.3%, 0%, 41.2%) |
| CIE-LAB | lab(21.81, 44.13, -63.73) |
| CIE-LCH | lch(21.81, 77.52, 304.70°) |
| OKLab | oklab(34.54% 0.0152 -0.1843) |
| OKLCH | oklch(34.54% 0.185 274.7) |
| XYZ | xyz(6.7552, 3.4632, 29.1607) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.09
Cobalt Blue
#030AA7
ΔE00 3.59
Royal Blue (survey)
#0504AA
ΔE00 4.11
Indigo Blue
#3A18B1
ΔE00 4.36
Ultramarine
#2000B1
ΔE00 4.58
Darkblue
#00008B
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C96 #8B961C
analogous
#1C4E96 #271C96 #641C96
triadic
#271C96 #96271C #1C9627
tetradic
#271C96 #961C4E #8B961C #1C9664
square
#271C96 #961C4E #8B961C #1C9664
split-complementary
#271C96 #96641C #4E961C
monochromatic
#0C092F #1A1262 #271C96 #3426CA #5B4EDE
Accessibility & contrast
On white
12.41
#271C96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#271C96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C96
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C96 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #271c96; /* rgb */ color: rgb(39, 28, 150); /* oklch */ color: oklch(34.5% 0.185 274.7);
Tailwind
colors: {
custom: {
50: '#745cb6',
500: '#271c96',
950: '#000000',
},
}SCSS
$custom: #271c96; $custom-light: #745cb6; $custom-dark: #000000;
JSON
{
"hex": "#271c96",
"rgb": {
"r": 39,
"g": 28,
"b": 150
},
"hsl": {
"h": 245.41,
"s": 68.539,
"l": 34.902
},
"oklch": {
"l": 0.34542,
"c": 0.18492,
"h": 274.7
},
"luminance": 0.03464
}Semantic roles & 50–950 ramp
primary
#271C96
secondary
#B6C14D
accent
#EB3CDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980