#2C40A8#2C40A8
#2C40A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.168 H 269.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40A8 |
|---|---|
| RGB | rgb(44, 64, 168) |
| HSL | hsl(230, 58%, 42%) |
| HSV | hsv(230, 74%, 66%) |
| CMYK | cmyk(73.8%, 61.9%, 0%, 34.1%) |
| CIE-LAB | lab(31.87, 29.21, -58.12) |
| CIE-LCH | lch(31.87, 65.04, 296.68°) |
| OKLab | oklab(42.41% -0.0017 -0.1678) |
| OKLCH | oklch(42.41% 0.168 269.4) |
| XYZ | xyz(9.9376, 7.0284, 37.8711) |
| Luminance | 0.0703 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.45
Blue Blue
#2242C7
ΔE00 4.13
Cobalt
#0047AB
ΔE00 4.35
Blueberry
#464196
ΔE00 4.77
Ocean Blue
#4F42B5
ΔE00 5.38
Cobalt (survey)
#1E488F
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40A8 #A8942C
analogous
#2C7EA8 #2C40A8 #562CA8
triadic
#2C40A8 #A82C40 #40A82C
tetradic
#2C40A8 #A82C7E #A8942C #2CA856
square
#2C40A8 #A82C7E #A8942C #2CA856
split-complementary
#2C40A8 #A8562C #7EA82C
monochromatic
#131B47 #1F2E78 #2C40A8 #435ACE #7484DB
Accessibility & contrast
On white
8.73
#2C40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2C40A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40A8
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40A8 | 1.00 | 8.73 | 2.41 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2c40a8; /* rgb */ color: rgb(44, 64, 168); /* oklch */ color: oklch(42.4% 0.168 269.4);
Tailwind
colors: {
custom: {
50: '#7774c3',
500: '#2c40a8',
950: '#000000',
},
}SCSS
$custom: #2c40a8; $custom-light: #7774c3; $custom-dark: #000000;
JSON
{
"hex": "#2c40a8",
"rgb": {
"r": 44,
"g": 64,
"b": 168
},
"hsl": {
"h": 230.323,
"s": 58.491,
"l": 41.569
},
"oklch": {
"l": 0.42406,
"c": 0.16785,
"h": 269.4
},
"luminance": 0.07029
}Semantic roles & 50–950 ramp
primary
#2C40A8
secondary
#C2B46E
accent
#C946E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82