#271E7B#271E7B
#271E7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.149 H 278.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).
Color values
| HEX | #271E7B |
|---|---|
| RGB | rgb(39, 30, 123) |
| HSL | hsl(246, 61%, 30%) |
| HSV | hsv(246, 76%, 48%) |
| CMYK | cmyk(68.3%, 75.6%, 0%, 51.8%) |
| CIE-LAB | lab(19.18, 34.13, -51.14) |
| CIE-LCH | lch(19.18, 61.48, 303.72°) |
| OKLab | oklab(31.8% 0.0208 -0.1477) |
| OKLCH | oklch(31.8% 0.149 278) |
| XYZ | xyz(4.8750, 2.7895, 19.0166) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.42
Royal
#0C1793
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 5.59
Dark Royal Blue
#02066F
ΔE00 5.63
Deep Blue
#040273
ΔE00 5.99
Navy
#000080
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E7B #727B1E
analogous
#1E447B #271E7B #551E7B
triadic
#271E7B #7B271E #1E7B27
tetradic
#271E7B #7B1E44 #727B1E #1E7B55
square
#271E7B #7B1E44 #727B1E #1E7B55
split-complementary
#271E7B #7B551E #447B1E
monochromatic
#080619 #17124A #271E7B #372AAC #5042D1
Accessibility & contrast
On white
13.48
#271E7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271E7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E7B
13.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E7B | 1.00 | 13.48 | 1.56 | 13.48 |
| #FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271e7b; /* rgb */ color: rgb(39, 30, 123); /* oklch */ color: oklch(31.8% 0.149 278.0);
Tailwind
colors: {
custom: {
50: '#6e5ba2',
500: '#271e7b',
950: '#000000',
},
}SCSS
$custom: #271e7b; $custom-light: #6e5ba2; $custom-dark: #000000;
JSON
{
"hex": "#271e7b",
"rgb": {
"r": 39,
"g": 30,
"b": 123
},
"hsl": {
"h": 245.806,
"s": 60.784,
"l": 30
},
"oklch": {
"l": 0.31802,
"c": 0.14913,
"h": 278
},
"luminance": 0.0279
}Semantic roles & 50–950 ramp
primary
#271E7B
secondary
#A4AE46
accent
#E444D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F