#271D7C#271D7C
#271D7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 278.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #271D7C |
|---|---|
| RGB | rgb(39, 29, 124) |
| HSL | hsl(246, 62%, 30%) |
| HSV | hsv(246, 77%, 49%) |
| CMYK | cmyk(68.5%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.08, 35.06, -51.95) |
| CIE-LCH | lch(19.08, 62.67, 304.02°) |
| OKLab | oklab(31.76% 0.0213 -0.15) |
| OKLCH | oklch(31.76% 0.152 278.1) |
| XYZ | xyz(4.9130, 2.7649, 19.3396) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.49
Royal
#0C1793
ΔE00 4.11
Indigo (survey)
#380282
ΔE00 5.29
Dark Royal Blue
#02066F
ΔE00 5.45
Deep Blue
#040273
ΔE00 5.77
Navy
#000080
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271D7C #727C1D
analogous
#1D427C #271D7C #571D7C
triadic
#271D7C #7C271D #1D7C27
tetradic
#271D7C #7C1D42 #727C1D #1D7C57
square
#271D7C #7C1D42 #727C1D #1D7C57
split-complementary
#271D7C #7C571D #427C1D
monochromatic
#080619 #17114A #271D7C #3729AE #5041D3
Accessibility & contrast
On white
13.52
#271D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271D7C
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271D7C | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271d7c; /* rgb */ color: rgb(39, 29, 124); /* oklch */ color: oklch(31.8% 0.152 278.1);
Tailwind
colors: {
custom: {
50: '#6e5ba3',
500: '#271d7c',
950: '#000000',
},
}SCSS
$custom: #271d7c; $custom-light: #6e5ba3; $custom-dark: #000000;
JSON
{
"hex": "#271d7c",
"rgb": {
"r": 39,
"g": 29,
"b": 124
},
"hsl": {
"h": 246.316,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.3176,
"c": 0.15153,
"h": 278.1
},
"luminance": 0.02765
}Semantic roles & 50–950 ramp
primary
#271D7C
secondary
#A4B045
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F