#2C42B3#2C42B3
#2C42B3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.180 H 268.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42B3 |
|---|---|
| RGB | rgb(44, 66, 179) |
| HSL | hsl(230, 61%, 44%) |
| HSV | hsv(230, 75%, 70%) |
| CMYK | cmyk(75.4%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(33.32, 31.97, -62.31) |
| CIE-LCH | lch(33.32, 70.03, 297.16°) |
| OKLab | oklab(43.77% -0.0033 -0.1801) |
| OKLCH | oklch(43.77% 0.18 268.9) |
| XYZ | xyz(11.1208, 7.6854, 43.5364) |
| Luminance | 0.0769 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.59
Sapphire (survey)
#2138AB
ΔE00 3.06
Cobalt
#0047AB
ΔE00 4.40
Ocean Blue
#4F42B5
ΔE00 4.81
Blue (survey)
#0343DF
ΔE00 5.42
Blueberry
#464196
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42B3 #B39D2C
analogous
#2C85B3 #2C42B3 #592CB3
triadic
#2C42B3 #B32C42 #42B32C
tetradic
#2C42B3 #B32C85 #B39D2C #2CB359
square
#2C42B3 #B32C85 #B39D2C #2CB359
split-complementary
#2C42B3 #B3592C #85B32C
monochromatic
#141E51 #203082 #2C42B3 #4A60D2 #7B8BDF
Accessibility & contrast
On white
8.28
#2C42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#2C42B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42B3
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42B3 | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2c42b3; /* rgb */ color: rgb(44, 66, 179); /* oklch */ color: oklch(43.8% 0.180 268.9);
Tailwind
colors: {
custom: {
50: '#7a76cb',
500: '#2c42b3',
950: '#000000',
},
}SCSS
$custom: #2c42b3; $custom-light: #7a76cb; $custom-dark: #000000;
JSON
{
"hex": "#2c42b3",
"rgb": {
"r": 44,
"g": 66,
"b": 179
},
"hsl": {
"h": 230.222,
"s": 60.538,
"l": 43.725
},
"oklch": {
"l": 0.43767,
"c": 0.18015,
"h": 268.9
},
"luminance": 0.07687
}Semantic roles & 50–950 ramp
primary
#2C42B3
secondary
#C7B974
accent
#CA44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82