#271882#271882
#271882 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 277.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #271882 |
|---|---|
| RGB | rgb(39, 24, 130) |
| HSL | hsl(248, 69%, 30%) |
| HSV | hsv(248, 82%, 51%) |
| CMYK | cmyk(70%, 81.5%, 0%, 49%) |
| CIE-LAB | lab(18.78, 39.78, -56.24) |
| CIE-LCH | lch(18.78, 68.89, 305.27°) |
| OKLab | oklab(31.75% 0.0226 -0.1625) |
| OKLCH | oklch(31.75% 0.164 277.9) |
| XYZ | xyz(5.1913, 2.6959, 21.3615) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.06
Midnight Blue
#191970
ΔE00 3.42
Indigo (survey)
#380282
ΔE00 4.05
Darkblue
#00008B
ΔE00 4.46
Navy
#000080
ΔE00 4.62
Dark Royal Blue
#02066F
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271882 #738218
analogous
#183E82 #271882 #5C1882
triadic
#271882 #822718 #188227
tetradic
#271882 #82183E #738218 #18825C
square
#271882 #82183E #738218 #18825C
split-complementary
#271882 #825C18 #3E8218
monochromatic
#08051B #180E4E #271882 #3622B6 #513ADB
Accessibility & contrast
On white
13.64
#271882 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#271882 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271882
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271882 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271882 | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271882; /* rgb */ color: rgb(39, 24, 130); /* oklch */ color: oklch(31.8% 0.164 277.9);
Tailwind
colors: {
custom: {
50: '#7058a7',
500: '#271882',
950: '#000000',
},
}SCSS
$custom: #271882; $custom-light: #7058a7; $custom-dark: #000000;
JSON
{
"hex": "#271882",
"rgb": {
"r": 39,
"g": 24,
"b": 130
},
"hsl": {
"h": 248.491,
"s": 68.831,
"l": 30.196
},
"oklch": {
"l": 0.31752,
"c": 0.16405,
"h": 277.9
},
"luminance": 0.02696
}Semantic roles & 50–950 ramp
primary
#271882
secondary
#A5B640
accent
#EC3CD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F