#2C40AD#2C40AD
#2C40AD is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.175 H 269.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40AD |
|---|---|
| RGB | rgb(44, 64, 173) |
| HSL | hsl(231, 59%, 43%) |
| HSV | hsv(231, 75%, 68%) |
| CMYK | cmyk(74.6%, 63%, 0%, 32.2%) |
| CIE-LAB | lab(32.30, 31.06, -60.41) |
| CIE-LCH | lch(32.30, 67.92, 297.21°) |
| OKLab | oklab(42.85% -0.0019 -0.1746) |
| OKLCH | oklch(42.85% 0.175 269.4) |
| XYZ | xyz(10.4123, 7.2183, 40.3716) |
| Luminance | 0.0722 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.44
Cobalt
#0047AB
ΔE00 4.52
Ocean Blue
#4F42B5
ΔE00 5.00
Blueberry
#464196
ΔE00 5.11
Blue (survey)
#0343DF
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40AD #AD992C
analogous
#2C80AD #2C40AD #592CAD
triadic
#2C40AD #AD2C40 #40AD2C
tetradic
#2C40AD #AD2C80 #AD992C #2CAD59
square
#2C40AD #AD2C80 #AD992C #2CAD59
split-complementary
#2C40AD #AD592C #80AD2C
monochromatic
#131C4B #202E7C #2C40AD #465CD0 #7787DC
Accessibility & contrast
On white
8.59
#2C40AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#2C40AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40AD
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40AD | 1.00 | 8.59 | 2.44 | 8.59 |
| #FFFFFF | 8.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2c40ad; /* rgb */ color: rgb(44, 64, 173); /* oklch */ color: oklch(42.9% 0.175 269.4);
Tailwind
colors: {
custom: {
50: '#7874c6',
500: '#2c40ad',
950: '#000000',
},
}SCSS
$custom: #2c40ad; $custom-light: #7874c6; $custom-dark: #000000;
JSON
{
"hex": "#2c40ad",
"rgb": {
"r": 44,
"g": 64,
"b": 173
},
"hsl": {
"h": 230.698,
"s": 59.447,
"l": 42.549
},
"oklch": {
"l": 0.42854,
"c": 0.17458,
"h": 269.4
},
"luminance": 0.07219
}Semantic roles & 50–950 ramp
primary
#2C40AD
secondary
#C4B771
accent
#CA45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82