#2C42A3#2C42A3
#2C42A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.159 H 268.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42A3 |
|---|---|
| RGB | rgb(44, 66, 163) |
| HSL | hsl(229, 57%, 41%) |
| HSV | hsv(229, 73%, 64%) |
| CMYK | cmyk(73%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(31.98, 26.02, -54.94) |
| CIE-LCH | lch(31.98, 60.79, 295.34°) |
| OKLab | oklab(42.36% -0.0032 -0.1585) |
| OKLCH | oklch(42.36% 0.159 268.8) |
| XYZ | xyz(9.5955, 7.0753, 35.5032) |
| Luminance | 0.0708 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.35
Cobalt
#0047AB
ΔE00 3.78
Blueberry
#464196
ΔE00 4.69
Blue Blue
#2242C7
ΔE00 4.87
Cobalt (survey)
#1E488F
ΔE00 5.14
Ocean Blue
#4F42B5
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42A3 #A38D2C
analogous
#2C7DA3 #2C42A3 #522CA3
triadic
#2C42A3 #A32C42 #42A32C
tetradic
#2C42A3 #A32C7D #A38D2C #2CA352
square
#2C42A3 #A32C7D #A38D2C #2CA352
split-complementary
#2C42A3 #A3522C #7DA32C
monochromatic
#121B43 #1F2E73 #2C42A3 #415ACC #7184D9
Accessibility & contrast
On white
8.69
#2C42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2C42A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42A3
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42A3 | 1.00 | 8.69 | 2.42 | 8.69 |
| #FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2c42a3; /* rgb */ color: rgb(44, 66, 163); /* oklch */ color: oklch(42.4% 0.159 268.8);
Tailwind
colors: {
custom: {
50: '#7676bf',
500: '#2c42a3',
950: '#000000',
},
}SCSS
$custom: #2c42a3; $custom-light: #7676bf; $custom-dark: #000000;
JSON
{
"hex": "#2c42a3",
"rgb": {
"r": 44,
"g": 66,
"b": 163
},
"hsl": {
"h": 228.908,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.42356,
"c": 0.15852,
"h": 268.8
},
"luminance": 0.07076
}Semantic roles & 50–950 ramp
primary
#2C42A3
secondary
#C0B06B
accent
#C447E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81