#2C45AC#2C45AC
#2C45AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.167 H 268.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2C45AC |
|---|---|
| RGB | rgb(44, 69, 172) |
| HSL | hsl(228, 59%, 42%) |
| HSV | hsv(228, 74%, 67%) |
| CMYK | cmyk(74.4%, 59.9%, 0%, 32.5%) |
| CIE-LAB | lab(33.50, 27.40, -57.85) |
| CIE-LCH | lch(33.50, 64.02, 295.34°) |
| OKLab | oklab(43.72% -0.0053 -0.167) |
| OKLCH | oklch(43.72% 0.167 268.2) |
| XYZ | xyz(10.6106, 7.7691, 39.9621) |
| Luminance | 0.0777 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.34
Blue Blue
#2242C7
ΔE00 3.77
Sapphire (survey)
#2138AB
ΔE00 3.89
Sapphire
#0F52BA
ΔE00 5.42
Blueberry
#464196
ΔE00 5.46
Cobalt (survey)
#1E488F
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C45AC #AC932C
analogous
#2C85AC #2C45AC #532CAC
triadic
#2C45AC #AC2C45 #45AC2C
tetradic
#2C45AC #AC2C85 #AC932C #2CAC53
square
#2C45AC #AC2C85 #AC932C #2CAC53
split-complementary
#2C45AC #AC532C #85AC2C
monochromatic
#131E4B #20317B #2C45AC #4661D0 #768ADC
Accessibility & contrast
On white
8.22
#2C45AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2C45AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C45AC
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C45AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C45AC | 1.00 | 8.22 | 2.55 | 8.22 |
| #FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2c45ac; /* rgb */ color: rgb(44, 69, 172); /* oklch */ color: oklch(43.7% 0.167 268.2);
Tailwind
colors: {
custom: {
50: '#7878c6',
500: '#2c45ac',
950: '#000000',
},
}SCSS
$custom: #2c45ac; $custom-light: #7878c6; $custom-dark: #000000;
JSON
{
"hex": "#2c45ac",
"rgb": {
"r": 44,
"g": 69,
"b": 172
},
"hsl": {
"h": 228.281,
"s": 59.259,
"l": 42.353
},
"oklch": {
"l": 0.43716,
"c": 0.16711,
"h": 268.2
},
"luminance": 0.0777
}Semantic roles & 50–950 ramp
primary
#2C45AC
secondary
#C4B370
accent
#C445E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82