#2C42A2#2C42A2
#2C42A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.157 H 268.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42A2 |
|---|---|
| RGB | rgb(44, 66, 162) |
| HSL | hsl(229, 57%, 40%) |
| HSV | hsv(229, 73%, 64%) |
| CMYK | cmyk(72.8%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.90, 25.64, -54.47) |
| CIE-LCH | lch(31.90, 60.20, 295.21°) |
| OKLab | oklab(42.27% -0.0032 -0.1571) |
| OKLCH | oklch(42.27% 0.157 268.8) |
| XYZ | xyz(9.5063, 7.0396, 35.0332) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Cobalt
#0047AB
ΔE00 3.79
Blueberry
#464196
ΔE00 4.65
Blue Blue
#2242C7
ΔE00 5.01
Cobalt (survey)
#1E488F
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42A2 #A28C2C
analogous
#2C7DA2 #2C42A2 #512CA2
triadic
#2C42A2 #A22C42 #42A22C
tetradic
#2C42A2 #A22C7D #A28C2C #2CA251
square
#2C42A2 #A22C7D #A28C2C #2CA251
split-complementary
#2C42A2 #A2512C #7DA22C
monochromatic
#121B42 #1F2E72 #2C42A2 #405ACB #7084D8
Accessibility & contrast
On white
8.72
#2C42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2C42A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42A2
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42A2 | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2c42a2; /* rgb */ color: rgb(44, 66, 162); /* oklch */ color: oklch(42.3% 0.157 268.8);
Tailwind
colors: {
custom: {
50: '#7676be',
500: '#2c42a2',
950: '#000000',
},
}SCSS
$custom: #2c42a2; $custom-light: #7676be; $custom-dark: #000000;
JSON
{
"hex": "#2c42a2",
"rgb": {
"r": 44,
"g": 66,
"b": 162
},
"hsl": {
"h": 228.814,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.4227,
"c": 0.15714,
"h": 268.8
},
"luminance": 0.07041
}Semantic roles & 50–950 ramp
primary
#2C42A2
secondary
#BFB06A
accent
#C447E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81