#271E94#271E94
#271E94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.181 H 274.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #271E94 |
|---|---|
| RGB | rgb(39, 30, 148) |
| HSL | hsl(245, 66%, 35%) |
| HSV | hsv(245, 80%, 58%) |
| CMYK | cmyk(73.6%, 79.7%, 0%, 42%) |
| CIE-LAB | lab(21.93, 42.46, -62.29) |
| CIE-LCH | lch(21.93, 75.38, 304.28°) |
| OKLab | oklab(34.56% 0.0149 -0.1801) |
| OKLCH | oklch(34.56% 0.181 274.7) |
| XYZ | xyz(6.6445, 3.4973, 28.3361) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.22
Cobalt Blue
#030AA7
ΔE00 4.05
Royal Blue (survey)
#0504AA
ΔE00 4.59
Indigo Blue
#3A18B1
ΔE00 4.69
Ultramarine
#2000B1
ΔE00 5.08
Darkblue
#00008B
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E94 #8B941E
analogous
#1E5094 #271E94 #621E94
triadic
#271E94 #94271E #1E9427
tetradic
#271E94 #941E50 #8B941E #1E9462
square
#271E94 #941E50 #8B941E #1E9462
split-complementary
#271E94 #94621E #50941E
monochromatic
#0C092E #1A1461 #271E94 #3428C7 #5B51DC
Accessibility & contrast
On white
12.36
#271E94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#271E94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E94
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E94 | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #271e94; /* rgb */ color: rgb(39, 30, 148); /* oklch */ color: oklch(34.6% 0.181 274.7);
Tailwind
colors: {
custom: {
50: '#745db5',
500: '#271e94',
950: '#000000',
},
}SCSS
$custom: #271e94; $custom-light: #745db5; $custom-dark: #000000;
JSON
{
"hex": "#271e94",
"rgb": {
"r": 39,
"g": 30,
"b": 148
},
"hsl": {
"h": 244.576,
"s": 66.292,
"l": 34.902
},
"oklch": {
"l": 0.34561,
"c": 0.18075,
"h": 274.7
},
"luminance": 0.03498
}Semantic roles & 50–950 ramp
primary
#271E94
secondary
#B6BF4F
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980