#2C40B6#2C40B6
#2C40B6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.186 H 269.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40B6 |
|---|---|
| RGB | rgb(44, 64, 182) |
| HSL | hsl(231, 61%, 44%) |
| HSV | hsv(231, 76%, 71%) |
| CMYK | cmyk(75.8%, 64.8%, 0%, 28.6%) |
| CIE-LAB | lab(33.09, 34.36, -64.46) |
| CIE-LCH | lch(33.09, 73.05, 298.06°) |
| OKLab | oklab(43.68% -0.0022 -0.1864) |
| OKLCH | oklch(43.68% 0.186 269.3) |
| XYZ | xyz(11.3127, 7.5784, 45.1135) |
| Luminance | 0.0758 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.26
Sapphire (survey)
#2138AB
ΔE00 2.74
Ocean Blue
#4F42B5
ΔE00 4.53
Cobalt
#0047AB
ΔE00 5.05
Blue (survey)
#0343DF
ΔE00 5.11
Blueberry
#464196
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40B6 #B6A22C
analogous
#2C85B6 #2C40B6 #5D2CB6
triadic
#2C40B6 #B62C40 #40B62C
tetradic
#2C40B6 #B62C85 #B6A22C #2CB65D
square
#2C40B6 #B62C85 #B6A22C #2CB65D
split-complementary
#2C40B6 #B65D2C #85B62C
monochromatic
#141D53 #202F85 #2C40B6 #4C5FD4 #7D8BE0
Accessibility & contrast
On white
8.35
#2C40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#2C40B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40B6
8.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40B6 | 1.00 | 8.35 | 2.52 | 8.35 |
| #FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2c40b6; /* rgb */ color: rgb(44, 64, 182); /* oklch */ color: oklch(43.7% 0.186 269.3);
Tailwind
colors: {
custom: {
50: '#7b75cd',
500: '#2c40b6',
950: '#000000',
},
}SCSS
$custom: #2c40b6; $custom-light: #7b75cd; $custom-dark: #000000;
JSON
{
"hex": "#2c40b6",
"rgb": {
"r": 44,
"g": 64,
"b": 182
},
"hsl": {
"h": 231.304,
"s": 61.062,
"l": 44.314
},
"oklch": {
"l": 0.43679,
"c": 0.18646,
"h": 269.3
},
"luminance": 0.0758
}Semantic roles & 50–950 ramp
primary
#2C40B6
secondary
#C8BC76
accent
#CD44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82