#271B9E#271B9E
#271B9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.195 H 274.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #271B9E |
|---|---|
| RGB | rgb(39, 27, 158) |
| HSL | hsl(245, 71%, 36%) |
| HSV | hsv(245, 83%, 62%) |
| CMYK | cmyk(75.3%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(22.59, 47.13, -67.34) |
| CIE-LCH | lch(22.59, 82.19, 304.99°) |
| OKLab | oklab(35.36% 0.0135 -0.1947) |
| OKLCH | oklch(35.36% 0.195 274) |
| XYZ | xyz(7.3981, 3.6831, 32.6621) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Cobalt Blue
#030AA7
ΔE00 2.96
Indigo Blue
#3A18B1
ΔE00 3.36
Royal Blue (survey)
#0504AA
ΔE00 3.43
Ultramarine
#2000B1
ΔE00 3.68
Darkblue
#00008B
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B9E #929E1B
analogous
#1B519E #271B9E #691B9E
triadic
#271B9E #9E271B #1B9E27
tetradic
#271B9E #9E1B51 #929E1B #1B9E69
square
#271B9E #9E1B51 #929E1B #1B9E69
split-complementary
#271B9E #9E691B #519E1B
monochromatic
#0D0935 #1A126A #271B9E #3424D2 #5F52E1
Accessibility & contrast
On white
12.09
#271B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#271B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B9E
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B9E | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 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: #271b9e; /* rgb */ color: rgb(39, 27, 158); /* oklch */ color: oklch(35.4% 0.195 274.0);
Tailwind
colors: {
custom: {
50: '#765cbc',
500: '#271b9e',
950: '#000000',
},
}SCSS
$custom: #271b9e; $custom-light: #765cbc; $custom-dark: #000000;
JSON
{
"hex": "#271b9e",
"rgb": {
"r": 39,
"g": 27,
"b": 158
},
"hsl": {
"h": 245.496,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.35362,
"c": 0.19521,
"h": 274
},
"luminance": 0.03684
}Semantic roles & 50–950 ramp
primary
#271B9E
secondary
#BAC451
accent
#EE3ADD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981