#271C93#271C93
#271C93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.181 H 275.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #271C93 |
|---|---|
| RGB | rgb(39, 28, 147) |
| HSL | hsl(246, 68%, 34%) |
| HSV | hsv(246, 81%, 58%) |
| CMYK | cmyk(73.5%, 81%, 0%, 42.4%) |
| CIE-LAB | lab(21.46, 43.18, -62.45) |
| CIE-LCH | lch(21.46, 75.92, 304.66°) |
| OKLab | oklab(34.2% 0.016 -0.1806) |
| OKLCH | oklch(34.2% 0.181 275.1) |
| XYZ | xyz(6.5167, 3.3678, 27.9047) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.02
Cobalt Blue
#030AA7
ΔE00 3.85
Royal Blue (survey)
#0504AA
ΔE00 4.38
Indigo Blue
#3A18B1
ΔE00 4.74
Ultramarine
#2000B1
ΔE00 4.92
Darkblue
#00008B
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271C93 #88931C
analogous
#1C4D93 #271C93 #631C93
triadic
#271C93 #93271C #1C9327
tetradic
#271C93 #931C4D #88931C #1C9363
square
#271C93 #931C4D #88931C #1C9363
split-complementary
#271C93 #93631C #4D931C
monochromatic
#0C082C #191260 #271C93 #3526C6 #5A4CDD
Accessibility & contrast
On white
12.55
#271C93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#271C93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271C93
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271C93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271C93 | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #271c93; /* rgb */ color: rgb(39, 28, 147); /* oklch */ color: oklch(34.2% 0.181 275.1);
Tailwind
colors: {
custom: {
50: '#745cb4',
500: '#271c93',
950: '#000000',
},
}SCSS
$custom: #271c93; $custom-light: #745cb4; $custom-dark: #000000;
JSON
{
"hex": "#271c93",
"rgb": {
"r": 39,
"g": 28,
"b": 147
},
"hsl": {
"h": 245.546,
"s": 68,
"l": 34.314
},
"oklch": {
"l": 0.34196,
"c": 0.1813,
"h": 275.1
},
"luminance": 0.03368
}Semantic roles & 50–950 ramp
primary
#271C93
secondary
#B5BF4C
accent
#EB3DDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980