#271C94#271C94
#271C94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.182 H 275.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #271C94 |
|---|---|
| RGB | rgb(39, 28, 148) |
| HSL | hsl(246, 68%, 35%) |
| HSV | hsv(246, 81%, 58%) |
| CMYK | cmyk(73.6%, 81.1%, 0%, 42%) |
| CIE-LAB | lab(21.58, 43.50, -62.88) |
| CIE-LCH | lch(21.58, 76.46, 304.67°) |
| OKLab | oklab(34.31% 0.0158 -0.1818) |
| OKLCH | oklch(34.31% 0.183 275) |
| XYZ | xyz(6.5955, 3.3993, 28.3198) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.03
Cobalt Blue
#030AA7
ΔE00 3.76
Royal Blue (survey)
#0504AA
ΔE00 4.28
Indigo Blue
#3A18B1
ΔE00 4.61
Ultramarine
#2000B1
ΔE00 4.80
Darkblue
#00008B
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C94 #89941C
analogous
#1C4D94 #271C94 #631C94
triadic
#271C94 #94271C #1C9427
tetradic
#271C94 #941C4D #89941C #1C9463
square
#271C94 #941C4D #89941C #1C9463
split-complementary
#271C94 #94631C #4D941C
monochromatic
#0C092D #191261 #271C94 #3526C7 #5A4DDD
Accessibility & contrast
On white
12.50
#271C94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#271C94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C94
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C94 | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #271c94; /* rgb */ color: rgb(39, 28, 148); /* oklch */ color: oklch(34.3% 0.182 275.0);
Tailwind
colors: {
custom: {
50: '#745cb5',
500: '#271c94',
950: '#000000',
},
}SCSS
$custom: #271c94; $custom-light: #745cb5; $custom-dark: #000000;
JSON
{
"hex": "#271c94",
"rgb": {
"r": 39,
"g": 28,
"b": 148
},
"hsl": {
"h": 245.5,
"s": 68.182,
"l": 34.51
},
"oklch": {
"l": 0.34311,
"c": 0.1825,
"h": 275
},
"luminance": 0.034
}Semantic roles & 50–950 ramp
primary
#271C94
secondary
#B5C04C
accent
#EB3DDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980