#2C40B5#2C40B5
#2C40B5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.185 H 269.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40B5 |
|---|---|
| RGB | rgb(44, 64, 181) |
| HSL | hsl(231, 61%, 44%) |
| HSV | hsv(231, 76%, 71%) |
| CMYK | cmyk(75.7%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(33.00, 33.99, -64.02) |
| CIE-LCH | lch(33.00, 72.48, 297.97°) |
| OKLab | oklab(43.59% -0.0022 -0.1851) |
| OKLCH | oklch(43.59% 0.185 269.3) |
| XYZ | xyz(11.2097, 7.5372, 44.5712) |
| Luminance | 0.0754 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.39
Sapphire (survey)
#2138AB
ΔE00 2.67
Ocean Blue
#4F42B5
ΔE00 4.57
Cobalt
#0047AB
ΔE00 4.98
Blue (survey)
#0343DF
ΔE00 5.23
Blueberry
#464196
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40B5 #B5A12C
analogous
#2C85B5 #2C40B5 #5D2CB5
triadic
#2C40B5 #B52C40 #40B52C
tetradic
#2C40B5 #B52C85 #B5A12C #2CB55D
square
#2C40B5 #B52C85 #B5A12C #2CB55D
split-complementary
#2C40B5 #B55D2C #85B52C
monochromatic
#141D53 #202F84 #2C40B5 #4B5FD3 #7C8BDF
Accessibility & contrast
On white
8.37
#2C40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2C40B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40B5
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40B5 | 1.00 | 8.37 | 2.51 | 8.37 |
| #FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2c40b5; /* rgb */ color: rgb(44, 64, 181); /* oklch */ color: oklch(43.6% 0.185 269.3);
Tailwind
colors: {
custom: {
50: '#7a74cc',
500: '#2c40b5',
950: '#000000',
},
}SCSS
$custom: #2c40b5; $custom-light: #7a74cc; $custom-dark: #000000;
JSON
{
"hex": "#2c40b5",
"rgb": {
"r": 44,
"g": 64,
"b": 181
},
"hsl": {
"h": 231.241,
"s": 60.889,
"l": 44.118
},
"oklch": {
"l": 0.43586,
"c": 0.18515,
"h": 269.3
},
"luminance": 0.07538
}Semantic roles & 50–950 ramp
primary
#2C40B5
secondary
#C8BC75
accent
#CD44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82