#2A237C#2A237C
#2A237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.144 H 278.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2A237C |
|---|---|
| RGB | rgb(42, 35, 124) |
| HSL | hsl(245, 56%, 31%) |
| HSV | hsv(245, 72%, 49%) |
| CMYK | cmyk(66.1%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(20.63, 31.83, -49.38) |
| CIE-LCH | lch(20.63, 58.75, 302.81°) |
| OKLab | oklab(32.93% 0.0212 -0.1425) |
| OKLCH | oklch(32.93% 0.144 278.5) |
| XYZ | xyz(5.1928, 3.1491, 19.3991) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Royal
#0C1793
ΔE00 5.01
Indigo (survey)
#380282
ΔE00 6.58
Dark Royal Blue
#02066F
ΔE00 6.86
Deep Blue
#040273
ΔE00 7.27
Darkblue
#00008B
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A237C #757C23
analogous
#23487C #2A237C #56237C
triadic
#2A237C #7C2A23 #237C2A
tetradic
#2A237C #7C2348 #757C23 #237C56
square
#2A237C #7C2348 #757C23 #237C56
split-complementary
#2A237C #7C5623 #487C23
monochromatic
#0A081D #1A164C #2A237C #3A30AC #574DCD
Accessibility & contrast
On white
12.88
#2A237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2A237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A237C
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A237C | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a237c; /* rgb */ color: rgb(42, 35, 124); /* oklch */ color: oklch(32.9% 0.144 278.5);
Tailwind
colors: {
custom: {
50: '#6f5fa3',
500: '#2a237c',
950: '#000000',
},
}SCSS
$custom: #2a237c; $custom-light: #6f5fa3; $custom-dark: #000000;
JSON
{
"hex": "#2a237c",
"rgb": {
"r": 42,
"g": 35,
"b": 124
},
"hsl": {
"h": 244.719,
"s": 55.975,
"l": 31.176
},
"oklch": {
"l": 0.32932,
"c": 0.14403,
"h": 278.5
},
"luminance": 0.0315
}Semantic roles & 50–950 ramp
primary
#2A237C
secondary
#A7AF4C
accent
#DF49D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F