#271783#271783
#271783 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.166 H 277.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #271783 |
|---|---|
| RGB | rgb(39, 23, 131) |
| HSL | hsl(249, 70%, 30%) |
| HSV | hsv(249, 82%, 51%) |
| CMYK | cmyk(70.2%, 82.4%, 0%, 48.6%) |
| CIE-LAB | lab(18.72, 40.61, -56.97) |
| CIE-LCH | lch(18.72, 69.96, 305.48°) |
| OKLab | oklab(31.75% 0.0228 -0.1646) |
| OKLCH | oklch(31.75% 0.166 277.9) |
| XYZ | xyz(5.2385, 2.6824, 21.7100) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.94
Midnight Blue
#191970
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 3.86
Darkblue
#00008B
ΔE00 4.24
Navy
#000080
ΔE00 4.45
Deep Blue
#040273
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271783 #738317
analogous
#173D83 #271783 #5D1783
triadic
#271783 #832717 #178327
tetradic
#271783 #83173D #738317 #17835D
square
#271783 #83173D #738317 #17835D
split-complementary
#271783 #835D17 #3D8317
monochromatic
#08051B #180E4F #271783 #3620B7 #5138DC
Accessibility & contrast
On white
13.67
#271783 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#271783 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271783
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271783 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271783 | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271783; /* rgb */ color: rgb(39, 23, 131); /* oklch */ color: oklch(31.7% 0.166 277.9);
Tailwind
colors: {
custom: {
50: '#7058a8',
500: '#271783',
950: '#000000',
},
}SCSS
$custom: #271783; $custom-light: #7058a8; $custom-dark: #000000;
JSON
{
"hex": "#271783",
"rgb": {
"r": 39,
"g": 23,
"b": 131
},
"hsl": {
"h": 248.889,
"s": 70.13,
"l": 30.196
},
"oklch": {
"l": 0.31746,
"c": 0.16616,
"h": 277.9
},
"luminance": 0.02683
}Semantic roles & 50–950 ramp
primary
#271783
secondary
#A5B73F
accent
#ED3BD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F