#271698#271698
#271698 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.192 H 275.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #271698 |
|---|---|
| RGB | rgb(39, 22, 152) |
| HSL | hsl(248, 75%, 34%) |
| HSV | hsv(248, 86%, 60%) |
| CMYK | cmyk(74.3%, 85.5%, 0%, 40.4%) |
| CIE-LAB | lab(21.10, 47.54, -66.14) |
| CIE-LCH | lch(21.10, 81.45, 305.71°) |
| OKLab | oklab(34.12% 0.0168 -0.1912) |
| OKLCH | oklch(34.12% 0.192 275) |
| XYZ | xyz(6.7892, 3.2715, 29.9733) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.09
Cobalt Blue
#030AA7
ΔE00 2.76
Royal Blue (survey)
#0504AA
ΔE00 3.21
Ultramarine
#2000B1
ΔE00 3.70
Indigo Blue
#3A18B1
ΔE00 4.10
Darkblue
#00008B
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271698 #879816
analogous
#164698 #271698 #681698
triadic
#271698 #982716 #169827
tetradic
#271698 #981646 #879816 #169868
square
#271698 #981646 #879816 #169868
split-complementary
#271698 #986816 #469816
monochromatic
#0C072D #190E63 #271698 #351ECD #5944E4
Accessibility & contrast
On white
12.69
#271698 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#271698 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271698
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271698 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271698 | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #271698; /* rgb */ color: rgb(39, 22, 152); /* oklch */ color: oklch(34.1% 0.192 275.0);
Tailwind
colors: {
custom: {
50: '#7559b8',
500: '#271698',
950: '#000000',
},
}SCSS
$custom: #271698; $custom-light: #7559b8; $custom-dark: #000000;
JSON
{
"hex": "#271698",
"rgb": {
"r": 39,
"g": 22,
"b": 152
},
"hsl": {
"h": 247.846,
"s": 74.713,
"l": 34.118
},
"oklch": {
"l": 0.34121,
"c": 0.19191,
"h": 275
},
"luminance": 0.03272
}Semantic roles & 50–950 ramp
primary
#271698
secondary
#B4C545
accent
#F136D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981