#2C45A6#2C45A6
#2C45A6 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.159 H 268.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2C45A6 |
|---|---|
| RGB | rgb(44, 69, 166) |
| HSL | hsl(228, 58%, 41%) |
| HSV | hsv(228, 73%, 65%) |
| CMYK | cmyk(73.5%, 58.4%, 0%, 34.9%) |
| CIE-LAB | lab(33.01, 25.15, -55.05) |
| CIE-LCH | lch(33.01, 60.52, 294.55°) |
| OKLab | oklab(43.21% -0.0055 -0.1588) |
| OKLCH | oklch(43.21% 0.159 268) |
| XYZ | xyz(10.0474, 7.5438, 36.9956) |
| Luminance | 0.0755 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.16
Sapphire (survey)
#2138AB
ΔE00 4.11
Blue Blue
#2242C7
ΔE00 4.63
Cobalt (survey)
#1E488F
ΔE00 4.80
Blueberry
#464196
ΔE00 5.20
Sapphire
#0F52BA
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C45A6 #A68D2C
analogous
#2C82A6 #2C45A6 #502CA6
triadic
#2C45A6 #A62C45 #45A62C
tetradic
#2C45A6 #A62C82 #A68D2C #2CA650
square
#2C45A6 #A62C82 #A68D2C #2CA650
split-complementary
#2C45A6 #A6502C #82A62C
monochromatic
#121D45 #1F3176 #2C45A6 #425FCD #7388DA
Accessibility & contrast
On white
8.37
#2C45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2C45A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C45A6
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C45A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C45A6 | 1.00 | 8.37 | 2.51 | 8.37 |
| #FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2c45a6; /* rgb */ color: rgb(44, 69, 166); /* oklch */ color: oklch(43.2% 0.159 268.0);
Tailwind
colors: {
custom: {
50: '#7678c1',
500: '#2c45a6',
950: '#000000',
},
}SCSS
$custom: #2c45a6; $custom-light: #7678c1; $custom-dark: #000000;
JSON
{
"hex": "#2c45a6",
"rgb": {
"r": 44,
"g": 69,
"b": 166
},
"hsl": {
"h": 227.705,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.43205,
"c": 0.15888,
"h": 268
},
"luminance": 0.07545
}Semantic roles & 50–950 ramp
primary
#2C45A6
secondary
#C1B06D
accent
#C246E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81