#2A317F#2A317F
#2A317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.130 H 273.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2A317F |
|---|---|
| RGB | rgb(42, 49, 127) |
| HSL | hsl(235, 50%, 33%) |
| HSV | hsv(235, 67%, 50%) |
| CMYK | cmyk(66.9%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.39, 23.69, -45.14) |
| CIE-LCH | lch(24.39, 50.98, 297.69°) |
| OKLab | oklab(35.76% 0.0088 -0.13) |
| OKLCH | oklch(35.76% 0.13 273.9) |
| XYZ | xyz(5.8827, 4.2207, 20.5792) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.63
Blueberry
#464196
ΔE00 6.27
Sapphire (survey)
#2138AB
ΔE00 6.70
Midnight Blue
#191970
ΔE00 6.78
Marine
#042E60
ΔE00 7.36
Royal
#0C1793
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A317F #7F782A
analogous
#2A5B7F #2A317F #4D2A7F
triadic
#2A317F #7F2A31 #317F2A
tetradic
#2A317F #7F2A5B #7F782A #2A7F4D
square
#2A317F #7F2A5B #7F782A #2A7F4D
split-complementary
#2A317F #7F4D2A #5B7F2A
monochromatic
#0C0E23 #1B1F51 #2A317F #3943AD #5B64C9
Accessibility & contrast
On white
11.39
#2A317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2A317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A317F
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A317F | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2a317f; /* rgb */ color: rgb(42, 49, 127); /* oklch */ color: oklch(35.8% 0.130 273.9);
Tailwind
colors: {
custom: {
50: '#6e69a5',
500: '#2a317f',
950: '#000000',
},
}SCSS
$custom: #2a317f; $custom-light: #6e69a5; $custom-dark: #000000;
JSON
{
"hex": "#2a317f",
"rgb": {
"r": 42,
"g": 49,
"b": 127
},
"hsl": {
"h": 235.059,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.35758,
"c": 0.13026,
"h": 273.9
},
"luminance": 0.04221
}Semantic roles & 50–950 ramp
primary
#2A317F
secondary
#AEA757
accent
#CE4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F