#271C9E#271C9E
#271C9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.194 H 273.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #271C9E |
|---|---|
| RGB | rgb(39, 28, 158) |
| HSL | hsl(245, 70%, 36%) |
| HSV | hsv(245, 82%, 62%) |
| CMYK | cmyk(75.3%, 82.3%, 0%, 38%) |
| CIE-LAB | lab(22.76, 46.65, -67.07) |
| CIE-LCH | lch(22.76, 81.70, 304.82°) |
| OKLab | oklab(35.47% 0.0131 -0.194) |
| OKLCH | oklch(35.47% 0.194 273.9) |
| XYZ | xyz(7.4215, 3.7297, 32.6699) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.65
Cobalt Blue
#030AA7
ΔE00 3.11
Indigo Blue
#3A18B1
ΔE00 3.39
Royal Blue (survey)
#0504AA
ΔE00 3.58
Ultramarine
#2000B1
ΔE00 3.83
Darkblue
#00008B
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C9E #939E1C
analogous
#1C529E #271C9E #681C9E
triadic
#271C9E #9E271C #1C9E27
tetradic
#271C9E #9E1C52 #939E1C #1C9E68
square
#271C9E #9E1C52 #939E1C #1C9E68
split-complementary
#271C9E #9E681C #529E1C
monochromatic
#0D0A36 #1A136A #271C9E #3425D2 #6054E1
Accessibility & contrast
On white
12.03
#271C9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#271C9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C9E
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C9E | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #271c9e; /* rgb */ color: rgb(39, 28, 158); /* oklch */ color: oklch(35.5% 0.194 273.9);
Tailwind
colors: {
custom: {
50: '#765cbc',
500: '#271c9e',
950: '#000000',
},
}SCSS
$custom: #271c9e; $custom-light: #765cbc; $custom-dark: #000000;
JSON
{
"hex": "#271c9e",
"rgb": {
"r": 39,
"g": 28,
"b": 158
},
"hsl": {
"h": 245.077,
"s": 69.892,
"l": 36.471
},
"oklch": {
"l": 0.35474,
"c": 0.19443,
"h": 273.9
},
"luminance": 0.0373
}Semantic roles & 50–950 ramp
primary
#271C9E
secondary
#BAC452
accent
#ED3BDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981