#271F82#271F82
#271F82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.157 H 276.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #271F82 |
|---|---|
| RGB | rgb(39, 31, 130) |
| HSL | hsl(245, 61%, 32%) |
| HSV | hsv(245, 76%, 51%) |
| CMYK | cmyk(70%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(20.13, 35.93, -54.01) |
| CIE-LCH | lch(20.13, 64.87, 303.63°) |
| OKLab | oklab(32.7% 0.0186 -0.1561) |
| OKLCH | oklch(32.7% 0.157 276.8) |
| XYZ | xyz(5.3546, 3.0225, 21.4160) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Royal
#0C1793
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 5.53
Darkblue
#00008B
ΔE00 5.86
Navy
#000080
ΔE00 6.04
Dark Royal Blue
#02066F
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F82 #7A821F
analogous
#1F4982 #271F82 #591F82
triadic
#271F82 #82271F #1F8227
tetradic
#271F82 #821F49 #7A821F #1F8259
square
#271F82 #821F49 #7A821F #1F8259
split-complementary
#271F82 #82591F #49821F
monochromatic
#09071F #181351 #271F82 #362BB3 #5348D3
Accessibility & contrast
On white
13.09
#271F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#271F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F82
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F82 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #271f82; /* rgb */ color: rgb(39, 31, 130); /* oklch */ color: oklch(32.7% 0.157 276.8);
Tailwind
colors: {
custom: {
50: '#6f5ca7',
500: '#271f82',
950: '#000000',
},
}SCSS
$custom: #271f82; $custom-light: #6f5ca7; $custom-dark: #000000;
JSON
{
"hex": "#271f82",
"rgb": {
"r": 39,
"g": 31,
"b": 130
},
"hsl": {
"h": 244.848,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.32702,
"c": 0.15717,
"h": 276.8
},
"luminance": 0.03023
}Semantic roles & 50–950 ramp
primary
#271F82
secondary
#ACB548
accent
#E543D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F