#2C42B1#2C42B1
#2C42B1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.177 H 268.9°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42B1 |
|---|---|
| RGB | rgb(44, 66, 177) |
| HSL | hsl(230, 60%, 43%) |
| HSV | hsv(230, 75%, 69%) |
| CMYK | cmyk(75.1%, 62.7%, 0%, 30.6%) |
| CIE-LAB | lab(33.15, 31.23, -61.40) |
| CIE-LCH | lch(33.15, 68.89, 296.96°) |
| OKLab | oklab(43.59% -0.0033 -0.1775) |
| OKLCH | oklch(43.59% 0.178 268.9) |
| XYZ | xyz(10.9200, 7.6051, 42.4789) |
| Luminance | 0.0761 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.87
Sapphire (survey)
#2138AB
ΔE00 2.99
Cobalt
#0047AB
ΔE00 4.26
Ocean Blue
#4F42B5
ΔE00 4.92
Blueberry
#464196
ΔE00 5.51
Blue (survey)
#0343DF
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42B1 #B19B2C
analogous
#2C84B1 #2C42B1 #582CB1
triadic
#2C42B1 #B12C42 #42B12C
tetradic
#2C42B1 #B12C84 #B19B2C #2CB158
square
#2C42B1 #B12C84 #B19B2C #2CB158
split-complementary
#2C42B1 #B1582C #84B12C
monochromatic
#141D4F #203080 #2C42B1 #495FD2 #7A8ADE
Accessibility & contrast
On white
8.33
#2C42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#2C42B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42B1
8.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42B1 | 1.00 | 8.33 | 2.52 | 8.33 |
| #FFFFFF | 8.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2c42b1; /* rgb */ color: rgb(44, 66, 177); /* oklch */ color: oklch(43.6% 0.177 268.9);
Tailwind
colors: {
custom: {
50: '#7976c9',
500: '#2c42b1',
950: '#000000',
},
}SCSS
$custom: #2c42b1; $custom-light: #7976c9; $custom-dark: #000000;
JSON
{
"hex": "#2c42b1",
"rgb": {
"r": 44,
"g": 66,
"b": 177
},
"hsl": {
"h": 230.075,
"s": 60.181,
"l": 43.333
},
"oklch": {
"l": 0.43586,
"c": 0.1775,
"h": 268.9
},
"luminance": 0.07606
}Semantic roles & 50–950 ramp
primary
#2C42B1
secondary
#C6B873
accent
#C944E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82