#2C42A8#2C42A8
#2C42A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.165 H 268.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2C42A8 |
|---|---|
| RGB | rgb(44, 66, 168) |
| HSL | hsl(229, 58%, 42%) |
| HSV | hsv(229, 74%, 66%) |
| CMYK | cmyk(73.8%, 60.7%, 0%, 34.1%) |
| CIE-LAB | lab(32.39, 27.89, -57.27) |
| CIE-LCH | lch(32.39, 63.70, 295.96°) |
| OKLab | oklab(42.79% -0.0032 -0.1653) |
| OKLCH | oklch(42.79% 0.165 268.9) |
| XYZ | xyz(10.0524, 7.2580, 37.9094) |
| Luminance | 0.0726 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.06
Cobalt
#0047AB
ΔE00 3.85
Blue Blue
#2242C7
ΔE00 4.14
Blueberry
#464196
ΔE00 4.90
Ocean Blue
#4F42B5
ΔE00 5.57
Cobalt (survey)
#1E488F
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C42A8 #A8922C
analogous
#2C80A8 #2C42A8 #542CA8
triadic
#2C42A8 #A82C42 #42A82C
tetradic
#2C42A8 #A82C80 #A8922C #2CA854
square
#2C42A8 #A82C80 #A8922C #2CA854
split-complementary
#2C42A8 #A8542C #80A82C
monochromatic
#131C47 #1F2F78 #2C42A8 #435CCE #7486DB
Accessibility & contrast
On white
8.57
#2C42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2C42A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C42A8
8.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C42A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C42A8 | 1.00 | 8.57 | 2.45 | 8.57 |
| #FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2c42a8; /* rgb */ color: rgb(44, 66, 168); /* oklch */ color: oklch(42.8% 0.165 268.9);
Tailwind
colors: {
custom: {
50: '#7776c3',
500: '#2c42a8',
950: '#000000',
},
}SCSS
$custom: #2c42a8; $custom-light: #7776c3; $custom-dark: #000000;
JSON
{
"hex": "#2c42a8",
"rgb": {
"r": 44,
"g": 66,
"b": 168
},
"hsl": {
"h": 229.355,
"s": 58.491,
"l": 41.569
},
"oklch": {
"l": 0.42788,
"c": 0.16538,
"h": 268.9
},
"luminance": 0.07259
}Semantic roles & 50–950 ramp
primary
#2C42A8
secondary
#C2B36E
accent
#C646E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82