#2A318D#2A318D
#2A318D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.150 H 273.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2A318D |
|---|---|
| RGB | rgb(42, 49, 141) |
| HSL | hsl(236, 54%, 36%) |
| HSV | hsv(236, 70%, 55%) |
| CMYK | cmyk(70.2%, 65.2%, 0%, 44.7%) |
| CIE-LAB | lab(25.60, 28.87, -51.92) |
| CIE-LCH | lch(25.60, 59.40, 299.08°) |
| OKLab | oklab(37.03% 0.0083 -0.1498) |
| OKLCH | oklch(37.03% 0.15 273.2) |
| XYZ | xyz(6.8593, 4.6113, 25.7227) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.64
Darkslateblue
#483D8B
ΔE00 5.59
Blueberry
#464196
ΔE00 5.61
Royal
#0C1793
ΔE00 6.79
Midnight Blue
#191970
ΔE00 7.28
Indigo Blue
#3A18B1
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A318D #8D862A
analogous
#2A628D #2A318D #542A8D
triadic
#2A318D #8D2A31 #318D2A
tetradic
#2A318D #8D2A62 #8D862A #2A8D54
square
#2A318D #8D2A62 #8D862A #2A8D54
split-complementary
#2A318D #8D542A #628D2A
monochromatic
#0E102F #1C215E #2A318D #3841BC #6169D0
Accessibility & contrast
On white
10.92
#2A318D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#2A318D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A318D
10.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A318D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A318D | 1.00 | 10.92 | 1.92 | 10.92 |
| #FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a318d; /* rgb */ color: rgb(42, 49, 141); /* oklch */ color: oklch(37.0% 0.150 273.2);
Tailwind
colors: {
custom: {
50: '#7169af',
500: '#2a318d',
950: '#000000',
},
}SCSS
$custom: #2a318d; $custom-light: #7169af; $custom-dark: #000000;
JSON
{
"hex": "#2a318d",
"rgb": {
"r": 42,
"g": 49,
"b": 141
},
"hsl": {
"h": 235.758,
"s": 54.098,
"l": 35.882
},
"oklch": {
"l": 0.37026,
"c": 0.15008,
"h": 273.2
},
"luminance": 0.04612
}Semantic roles & 50–950 ramp
primary
#2A318D
secondary
#B6B05D
accent
#D34ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F