#2C45A2#2C45A2
#2C45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.153 H 267.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2C45A2 |
|---|---|
| RGB | rgb(44, 69, 162) |
| HSL | hsl(227, 57%, 40%) |
| HSV | hsv(227, 73%, 64%) |
| CMYK | cmyk(72.8%, 57.4%, 0%, 36.5%) |
| CIE-LAB | lab(32.70, 23.64, -53.16) |
| CIE-LCH | lch(32.70, 58.18, 293.97°) |
| OKLab | oklab(42.87% -0.0056 -0.1532) |
| OKLCH | oklch(42.87% 0.153 267.9) |
| XYZ | xyz(9.6862, 7.3993, 35.0932) |
| Luminance | 0.0740 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.16
Cobalt (survey)
#1E488F
ΔE00 4.32
Sapphire (survey)
#2138AB
ΔE00 4.37
Blueberry
#464196
ΔE00 5.10
Blue Blue
#2242C7
ΔE00 5.21
Sapphire
#0F52BA
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C45A2 #A2892C
analogous
#2C80A2 #2C45A2 #4E2CA2
triadic
#2C45A2 #A22C45 #45A22C
tetradic
#2C45A2 #A22C80 #A2892C #2CA24E
square
#2C45A2 #A22C80 #A2892C #2CA24E
split-complementary
#2C45A2 #A24E2C #80A22C
monochromatic
#121C42 #1F3172 #2C45A2 #405ECB #7086D8
Accessibility & contrast
On white
8.47
#2C45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2C45A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C45A2
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C45A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C45A2 | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2c45a2; /* rgb */ color: rgb(44, 69, 162); /* oklch */ color: oklch(42.9% 0.153 267.9);
Tailwind
colors: {
custom: {
50: '#7678be',
500: '#2c45a2',
950: '#000000',
},
}SCSS
$custom: #2c45a2; $custom-light: #7678be; $custom-dark: #000000;
JSON
{
"hex": "#2c45a2",
"rgb": {
"r": 44,
"g": 69,
"b": 162
},
"hsl": {
"h": 227.288,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.4287,
"c": 0.15333,
"h": 267.9
},
"luminance": 0.074
}Semantic roles & 50–950 ramp
primary
#2C45A2
secondary
#BFAD6A
accent
#C047E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81