#271B7C#271B7C
#271B7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.154 H 278.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).
Color values
| HEX | #271B7C |
|---|---|
| RGB | rgb(39, 27, 124) |
| HSL | hsl(247, 64%, 30%) |
| HSV | hsv(247, 78%, 49%) |
| CMYK | cmyk(68.5%, 78.2%, 0%, 51.4%) |
| CIE-LAB | lab(18.67, 36.21, -52.62) |
| CIE-LCH | lch(18.67, 63.87, 304.54°) |
| OKLab | oklab(31.47% 0.0225 -0.152) |
| OKLCH | oklch(31.47% 0.154 278.4) |
| XYZ | xyz(4.8656, 2.6700, 19.3238) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.50
Royal
#0C1793
ΔE00 3.96
Indigo (survey)
#380282
ΔE00 4.84
Dark Royal Blue
#02066F
ΔE00 5.08
Navy
#000080
ΔE00 5.34
Deep Blue
#040273
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271B7C #707C1B
analogous
#1B3F7C #271B7C #581B7C
triadic
#271B7C #7C271B #1B7C27
tetradic
#271B7C #7C1B3F #707C1B #1B7C58
square
#271B7C #7C1B3F #707C1B #1B7C58
split-complementary
#271B7C #7C581B #3F7C1B
monochromatic
#080519 #17104A #271B7C #3726AE #503DD5
Accessibility & contrast
On white
13.69
#271B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#271B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271B7C
13.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271B7C | 1.00 | 13.69 | 1.53 | 13.69 |
| #FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #271b7c; /* rgb */ color: rgb(39, 27, 124); /* oklch */ color: oklch(31.5% 0.154 278.4);
Tailwind
colors: {
custom: {
50: '#6e5aa3',
500: '#271b7c',
950: '#000000',
},
}SCSS
$custom: #271b7c; $custom-light: #6e5aa3; $custom-dark: #000000;
JSON
{
"hex": "#271b7c",
"rgb": {
"r": 39,
"g": 27,
"b": 124
},
"hsl": {
"h": 247.423,
"s": 64.238,
"l": 29.608
},
"oklch": {
"l": 0.31474,
"c": 0.15362,
"h": 278.4
},
"luminance": 0.0267
}Semantic roles & 50–950 ramp
primary
#271B7C
secondary
#A2B043
accent
#E741D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F