#2C40B1#2C40B1
#2C40B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.180 H 269.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40B1 |
|---|---|
| RGB | rgb(44, 64, 177) |
| HSL | hsl(231, 60%, 43%) |
| HSV | hsv(231, 75%, 69%) |
| CMYK | cmyk(75.1%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(32.65, 32.53, -62.22) |
| CIE-LCH | lch(32.65, 70.21, 297.60°) |
| OKLab | oklab(43.22% -0.002 -0.1799) |
| OKLCH | oklch(43.22% 0.18 269.4) |
| XYZ | xyz(10.8052, 7.3754, 42.4406) |
| Luminance | 0.0738 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.45
Blue Blue
#2242C7
ΔE00 2.90
Cobalt
#0047AB
ΔE00 4.73
Ocean Blue
#4F42B5
ΔE00 4.75
Blueberry
#464196
ΔE00 5.44
Blue (survey)
#0343DF
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40B1 #B19D2C
analogous
#2C82B1 #2C40B1 #5A2CB1
triadic
#2C40B1 #B12C40 #40B12C
tetradic
#2C40B1 #B12C82 #B19D2C #2CB15A
square
#2C40B1 #B12C82 #B19D2C #2CB15A
split-complementary
#2C40B1 #B15A2C #82B12C
monochromatic
#141D4F #202E80 #2C40B1 #495DD2 #7A89DE
Accessibility & contrast
On white
8.48
#2C40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2C40B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40B1
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40B1 | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2c40b1; /* rgb */ color: rgb(44, 64, 177); /* oklch */ color: oklch(43.2% 0.180 269.4);
Tailwind
colors: {
custom: {
50: '#7974c9',
500: '#2c40b1',
950: '#000000',
},
}SCSS
$custom: #2c40b1; $custom-light: #7974c9; $custom-dark: #000000;
JSON
{
"hex": "#2c40b1",
"rgb": {
"r": 44,
"g": 64,
"b": 177
},
"hsl": {
"h": 230.977,
"s": 60.181,
"l": 43.333
},
"oklch": {
"l": 0.43218,
"c": 0.17989,
"h": 269.4
},
"luminance": 0.07377
}Semantic roles & 50–950 ramp
primary
#2C40B1
secondary
#C6B973
accent
#CB44E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82