#2C45AB#2C45AB
#2C45AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.166 H 268.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2C45AB |
|---|---|
| RGB | rgb(44, 69, 171) |
| HSL | hsl(228, 59%, 42%) |
| HSV | hsv(228, 74%, 67%) |
| CMYK | cmyk(74.3%, 59.6%, 0%, 32.9%) |
| CIE-LAB | lab(33.42, 27.03, -57.39) |
| CIE-LCH | lch(33.42, 63.44, 295.22°) |
| OKLab | oklab(43.63% -0.0053 -0.1656) |
| OKLCH | oklch(43.63% 0.166 268.2) |
| XYZ | xyz(10.5150, 7.7309, 39.4582) |
| Luminance | 0.0773 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.30
Blue Blue
#2242C7
ΔE00 3.91
Sapphire (survey)
#2138AB
ΔE00 3.91
Cobalt (survey)
#1E488F
ΔE00 5.41
Blueberry
#464196
ΔE00 5.41
Sapphire
#0F52BA
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C45AB #AB922C
analogous
#2C85AB #2C45AB #532CAB
triadic
#2C45AB #AB2C45 #45AB2C
tetradic
#2C45AB #AB2C85 #AB922C #2CAB53
square
#2C45AB #AB2C85 #AB922C #2CAB53
split-complementary
#2C45AB #AB532C #85AB2C
monochromatic
#131E4A #1F317A #2C45AB #4560CF #768ADC
Accessibility & contrast
On white
8.25
#2C45AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2C45AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C45AB
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C45AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C45AB | 1.00 | 8.25 | 2.55 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2c45ab; /* rgb */ color: rgb(44, 69, 171); /* oklch */ color: oklch(43.6% 0.166 268.2);
Tailwind
colors: {
custom: {
50: '#7878c5',
500: '#2c45ab',
950: '#000000',
},
}SCSS
$custom: #2c45ab; $custom-light: #7878c5; $custom-dark: #000000;
JSON
{
"hex": "#2c45ab",
"rgb": {
"r": 44,
"g": 69,
"b": 171
},
"hsl": {
"h": 228.189,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.4363,
"c": 0.16574,
"h": 268.2
},
"luminance": 0.07732
}Semantic roles & 50–950 ramp
primary
#2C45AB
secondary
#C3B36F
accent
#C346E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82