#271F7F#271F7F
#271F7F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.153 H 277.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #271F7F |
|---|---|
| RGB | rgb(39, 31, 127) |
| HSL | hsl(245, 61%, 31%) |
| HSV | hsv(245, 76%, 50%) |
| CMYK | cmyk(69.3%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(19.82, 34.90, -52.64) |
| CIE-LCH | lch(19.82, 63.16, 303.55°) |
| OKLab | oklab(32.38% 0.0193 -0.1521) |
| OKLCH | oklch(32.38% 0.153 277.2) |
| XYZ | xyz(5.1562, 2.9432, 20.3709) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Royal
#0C1793
ΔE00 3.89
Indigo (survey)
#380282
ΔE00 5.63
Dark Royal Blue
#02066F
ΔE00 5.94
Darkblue
#00008B
ΔE00 6.06
Navy
#000080
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F7F #777F1F
analogous
#1F477F #271F7F #571F7F
triadic
#271F7F #7F271F #1F7F27
tetradic
#271F7F #7F1F47 #777F1F #1F7F57
square
#271F7F #7F1F47 #777F1F #1F7F57
split-complementary
#271F7F #7F571F #477F1F
monochromatic
#09071D #18134E #271F7F #362BB0 #5246D2
Accessibility & contrast
On white
13.22
#271F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#271F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F7F
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F7F | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #271f7f; /* rgb */ color: rgb(39, 31, 127); /* oklch */ color: oklch(32.4% 0.153 277.2);
Tailwind
colors: {
custom: {
50: '#6f5ca5',
500: '#271f7f',
950: '#000000',
},
}SCSS
$custom: #271f7f; $custom-light: #6f5ca5; $custom-dark: #000000;
JSON
{
"hex": "#271f7f",
"rgb": {
"r": 39,
"g": 31,
"b": 127
},
"hsl": {
"h": 245,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.3238,
"c": 0.15328,
"h": 277.2
},
"luminance": 0.02944
}Semantic roles & 50–950 ramp
primary
#271F7F
secondary
#A9B248
accent
#E444D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F