#2C42B7#2C42B7
#2C42B7 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.185 H 268.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42B7 |
|---|---|
| RGB | rgb(44, 66, 183) |
| HSL | hsl(231, 61%, 45%) |
| HSV | hsv(231, 76%, 72%) |
| CMYK | cmyk(76%, 63.9%, 0%, 28.2%) |
| CIE-LAB | lab(33.67, 33.44, -64.11) |
| CIE-LCH | lch(33.67, 72.30, 297.55°) |
| OKLab | oklab(44.13% -0.0035 -0.1854) |
| OKLCH | oklch(44.13% 0.185 268.9) |
| XYZ | xyz(11.5312, 7.8495, 45.6979) |
| Luminance | 0.0785 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.06
Sapphire (survey)
#2138AB
ΔE00 3.27
Ocean Blue
#4F42B5
ΔE00 4.64
Cobalt
#0047AB
ΔE00 4.70
Blue (survey)
#0343DF
ΔE00 4.89
Blueberry
#464196
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42B7 #B7A12C
analogous
#2C87B7 #2C42B7 #5C2CB7
triadic
#2C42B7 #B72C42 #42B72C
tetradic
#2C42B7 #B72C87 #B7A12C #2CB75C
square
#2C42B7 #B72C87 #B7A12C #2CB75C
split-complementary
#2C42B7 #B75C2C #87B72C
monochromatic
#141E54 #203086 #2C42B7 #4C62D4 #7E8DE0
Accessibility & contrast
On white
8.17
#2C42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2C42B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42B7
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42B7 | 1.00 | 8.17 | 2.57 | 8.17 |
| #FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2c42b7; /* rgb */ color: rgb(44, 66, 183); /* oklch */ color: oklch(44.1% 0.185 268.9);
Tailwind
colors: {
custom: {
50: '#7b76ce',
500: '#2c42b7',
950: '#000000',
},
}SCSS
$custom: #2c42b7; $custom-light: #7b76ce; $custom-dark: #000000;
JSON
{
"hex": "#2c42b7",
"rgb": {
"r": 44,
"g": 66,
"b": 183
},
"hsl": {
"h": 230.504,
"s": 61.233,
"l": 44.51
},
"oklch": {
"l": 0.44131,
"c": 0.18542,
"h": 268.9
},
"luminance": 0.07851
}Semantic roles & 50–950 ramp
primary
#2C42B7
secondary
#C8BB76
accent
#CB43E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82