#271F7C#271F7C
#271F7C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 277.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #271F7C |
|---|---|
| RGB | rgb(39, 31, 124) |
| HSL | hsl(245, 60%, 30%) |
| HSV | hsv(245, 75%, 49%) |
| CMYK | cmyk(68.5%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(19.50, 33.88, -51.25) |
| CIE-LCH | lch(19.50, 61.44, 303.46°) |
| OKLab | oklab(32.06% 0.0199 -0.148) |
| OKLCH | oklch(32.06% 0.149 277.7) |
| XYZ | xyz(4.9636, 2.8661, 19.3565) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.58
Royal
#0C1793
ΔE00 4.31
Indigo (survey)
#380282
ΔE00 5.77
Dark Royal Blue
#02066F
ΔE00 5.86
Deep Blue
#040273
ΔE00 6.22
Navy
#000080
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F7C #747C1F
analogous
#1F467C #271F7C #551F7C
triadic
#271F7C #7C271F #1F7C27
tetradic
#271F7C #7C1F46 #747C1F #1F7C55
square
#271F7C #7C1F46 #747C1F #1F7C55
split-complementary
#271F7C #7C551F #467C1F
monochromatic
#08071A #18134B #271F7C #362BAD #5145D0
Accessibility & contrast
On white
13.35
#271F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F7C
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F7C | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271f7c; /* rgb */ color: rgb(39, 31, 124); /* oklch */ color: oklch(32.1% 0.149 277.7);
Tailwind
colors: {
custom: {
50: '#6e5ca3',
500: '#271f7c',
950: '#000000',
},
}SCSS
$custom: #271f7c; $custom-light: #6e5ca3; $custom-dark: #000000;
JSON
{
"hex": "#271f7c",
"rgb": {
"r": 39,
"g": 31,
"b": 124
},
"hsl": {
"h": 245.161,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.32061,
"c": 0.14934,
"h": 277.7
},
"luminance": 0.02867
}Semantic roles & 50–950 ramp
primary
#271F7C
secondary
#A6AF48
accent
#E345D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F