#2A237F#2A237F
#2A237F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.148 H 278.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2A237F |
|---|---|
| RGB | rgb(42, 35, 127) |
| HSL | hsl(245, 57%, 32%) |
| HSV | hsv(245, 72%, 50%) |
| CMYK | cmyk(66.9%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(20.93, 32.87, -50.80) |
| CIE-LCH | lch(20.93, 60.51, 302.91°) |
| OKLab | oklab(33.24% 0.0207 -0.1466) |
| OKLCH | oklch(33.24% 0.148 278) |
| XYZ | xyz(5.3854, 3.2262, 20.4135) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Royal
#0C1793
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 6.43
Dark Royal Blue
#02066F
ΔE00 6.91
Darkblue
#00008B
ΔE00 7.07
Navy
#000080
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A237F #787F23
analogous
#234A7F #2A237F #58237F
triadic
#2A237F #7F2A23 #237F2A
tetradic
#2A237F #7F234A #787F23 #237F58
square
#2A237F #7F234A #787F23 #237F58
split-complementary
#2A237F #7F5823 #4A7F23
monochromatic
#0A091F #1A164F #2A237F #3A30AF #584ECE
Accessibility & contrast
On white
12.76
#2A237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2A237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A237F
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A237F | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a237f; /* rgb */ color: rgb(42, 35, 127); /* oklch */ color: oklch(33.2% 0.148 278.0);
Tailwind
colors: {
custom: {
50: '#705fa5',
500: '#2a237f',
950: '#000000',
},
}SCSS
$custom: #2a237f; $custom-light: #705fa5; $custom-dark: #000000;
JSON
{
"hex": "#2a237f",
"rgb": {
"r": 42,
"g": 35,
"b": 127
},
"hsl": {
"h": 244.565,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.33235,
"c": 0.14806,
"h": 278
},
"luminance": 0.03227
}Semantic roles & 50–950 ramp
primary
#2A237F
secondary
#AAB14C
accent
#E048D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F