#2A317C#2A317C
#2A317C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.126 H 274.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2A317C |
|---|---|
| RGB | rgb(42, 49, 124) |
| HSL | hsl(235, 49%, 33%) |
| HSV | hsv(235, 66%, 49%) |
| CMYK | cmyk(66.1%, 60.5%, 0%, 51.4%) |
| CIE-LAB | lab(24.14, 22.58, -43.65) |
| CIE-LCH | lch(24.14, 49.14, 297.35°) |
| OKLab | oklab(35.5% 0.0088 -0.1256) |
| OKLCH | oklch(35.5% 0.126 274) |
| XYZ | xyz(5.6900, 4.1436, 19.5648) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.76
Blueberry
#464196
ΔE00 6.51
Midnight Blue
#191970
ΔE00 6.80
Marine
#042E60
ΔE00 7.04
Sapphire (survey)
#2138AB
ΔE00 7.18
Marine Blue
#01386A
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A317C #7C752A
analogous
#2A5A7C #2A317C #4C2A7C
triadic
#2A317C #7C2A31 #317C2A
tetradic
#2A317C #7C2A5A #7C752A #2A7C4C
square
#2A317C #7C2A5A #7C752A #2A7C4C
split-complementary
#2A317C #7C4C2A #5A7C2A
monochromatic
#0B0D21 #1B1F4E #2A317C #3943AA #5963C7
Accessibility & contrast
On white
11.48
#2A317C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2A317C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A317C
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A317C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A317C | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a317c; /* rgb */ color: rgb(42, 49, 124); /* oklch */ color: oklch(35.5% 0.126 274.0);
Tailwind
colors: {
custom: {
50: '#6e69a3',
500: '#2a317c',
950: '#000000',
},
}SCSS
$custom: #2a317c; $custom-light: #6e69a3; $custom-dark: #000000;
JSON
{
"hex": "#2a317c",
"rgb": {
"r": 42,
"g": 49,
"b": 124
},
"hsl": {
"h": 234.878,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.35497,
"c": 0.12589,
"h": 274
},
"luminance": 0.04144
}Semantic roles & 50–950 ramp
primary
#2A317C
secondary
#ADA555
accent
#CD4FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F