#2A39A4#2A39A4
#2A39A4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.172 H 270.4°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2A39A4 |
|---|---|
| RGB | rgb(42, 57, 164) |
| HSL | hsl(233, 59%, 40%) |
| HSV | hsv(233, 74%, 64%) |
| CMYK | cmyk(74.4%, 65.2%, 0%, 35.7%) |
| CIE-LAB | lab(29.66, 32.07, -59.33) |
| CIE-LCH | lch(29.66, 67.45, 298.39°) |
| OKLab | oklab(40.64% 0.0012 -0.1715) |
| OKLCH | oklch(40.64% 0.172 270.4) |
| XYZ | xyz(9.1165, 6.0979, 35.8113) |
| Luminance | 0.0610 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.16
Blueberry
#464196
ΔE00 4.89
Blue Blue
#2242C7
ΔE00 5.21
Ocean Blue
#4F42B5
ΔE00 5.80
Cobalt
#0047AB
ΔE00 6.02
Darkslateblue
#483D8B
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A39A4 #A4952A
analogous
#2A76A4 #2A39A4 #582AA4
triadic
#2A39A4 #A42A39 #39A42A
tetradic
#2A39A4 #A42A76 #A4952A #2AA458
square
#2A39A4 #A42A76 #A4952A #2AA458
split-complementary
#2A39A4 #A4582A #76A42A
monochromatic
#111743 #1E2873 #2A39A4 #3E4FCD #6E7CDA
Accessibility & contrast
On white
9.46
#2A39A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2A39A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A39A4
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A39A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A39A4 | 1.00 | 9.46 | 2.22 | 9.46 |
| #FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a39a4; /* rgb */ color: rgb(42, 57, 164); /* oklch */ color: oklch(40.6% 0.172 270.4);
Tailwind
colors: {
custom: {
50: '#766fc0',
500: '#2a39a4',
950: '#000000',
},
}SCSS
$custom: #2a39a4; $custom-light: #766fc0; $custom-dark: #000000;
JSON
{
"hex": "#2a39a4",
"rgb": {
"r": 42,
"g": 57,
"b": 164
},
"hsl": {
"h": 232.623,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.40639,
"c": 0.17152,
"h": 270.4
},
"luminance": 0.06099
}Semantic roles & 50–950 ramp
primary
#2A39A4
secondary
#C1B669
accent
#CF45E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81