#2A237E#2A237E
#2A237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.147 H 278.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2A237E |
|---|---|
| RGB | rgb(42, 35, 126) |
| HSL | hsl(245, 57%, 32%) |
| HSV | hsv(245, 72%, 49%) |
| CMYK | cmyk(66.7%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.83, 32.53, -50.33) |
| CIE-LCH | lch(20.83, 59.92, 302.87°) |
| OKLab | oklab(33.13% 0.0209 -0.1452) |
| OKLCH | oklch(33.13% 0.147 278.2) |
| XYZ | xyz(5.3206, 3.2002, 20.0719) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.39
Royal
#0C1793
ΔE00 4.75
Indigo (survey)
#380282
ΔE00 6.47
Dark Royal Blue
#02066F
ΔE00 6.89
Darkblue
#00008B
ΔE00 7.14
Navy
#000080
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A237E #777E23
analogous
#234A7E #2A237E #58237E
triadic
#2A237E #7E2A23 #237E2A
tetradic
#2A237E #7E234A #777E23 #237E58
square
#2A237E #7E234A #777E23 #237E58
split-complementary
#2A237E #7E5823 #4A7E23
monochromatic
#0A081E #1A164E #2A237E #3A30AE #584ECE
Accessibility & contrast
On white
12.80
#2A237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2A237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A237E
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A237E | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a237e; /* rgb */ color: rgb(42, 35, 126); /* oklch */ color: oklch(33.1% 0.147 278.2);
Tailwind
colors: {
custom: {
50: '#6f5fa4',
500: '#2a237e',
950: '#000000',
},
}SCSS
$custom: #2a237e; $custom-light: #6f5fa4; $custom-dark: #000000;
JSON
{
"hex": "#2a237e",
"rgb": {
"r": 42,
"g": 35,
"b": 126
},
"hsl": {
"h": 244.615,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.33133,
"c": 0.14672,
"h": 278.2
},
"luminance": 0.03201
}Semantic roles & 50–950 ramp
primary
#2A237E
secondary
#A9B04C
accent
#E048D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F