#2C42A4#2C42A4
#2C42A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.160 H 268.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42A4 |
|---|---|
| RGB | rgb(44, 66, 164) |
| HSL | hsl(229, 58%, 41%) |
| HSV | hsv(229, 73%, 64%) |
| CMYK | cmyk(73.2%, 59.8%, 0%, 35.7%) |
| CIE-LAB | lab(32.06, 26.39, -55.41) |
| CIE-LCH | lch(32.06, 61.37, 295.47°) |
| OKLab | oklab(42.44% -0.0032 -0.1599) |
| OKLCH | oklch(42.44% 0.16 268.8) |
| XYZ | xyz(9.6855, 7.1112, 35.9769) |
| Luminance | 0.0711 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.28
Cobalt
#0047AB
ΔE00 3.79
Blue Blue
#2242C7
ΔE00 4.72
Blueberry
#464196
ΔE00 4.72
Cobalt (survey)
#1E488F
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42A4 #A48E2C
analogous
#2C7EA4 #2C42A4 #522CA4
triadic
#2C42A4 #A42C42 #42A42C
tetradic
#2C42A4 #A42C7E #A48E2C #2CA452
square
#2C42A4 #A42C7E #A48E2C #2CA452
split-complementary
#2C42A4 #A4522C #7EA42C
monochromatic
#121B43 #1F2F74 #2C42A4 #415BCC #7184D9
Accessibility & contrast
On white
8.67
#2C42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2C42A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42A4
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42A4 | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2c42a4; /* rgb */ color: rgb(44, 66, 164); /* oklch */ color: oklch(42.4% 0.160 268.8);
Tailwind
colors: {
custom: {
50: '#7676c0',
500: '#2c42a4',
950: '#000000',
},
}SCSS
$custom: #2c42a4; $custom-light: #7676c0; $custom-dark: #000000;
JSON
{
"hex": "#2c42a4",
"rgb": {
"r": 44,
"g": 66,
"b": 164
},
"hsl": {
"h": 229,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.42441,
"c": 0.1599,
"h": 268.8
},
"luminance": 0.07112
}Semantic roles & 50–950 ramp
primary
#2C42A4
secondary
#C0B16B
accent
#C547E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81