#2D45AB#2D45AB
#2D45AB is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.165 H 268.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2D45AB |
|---|---|
| RGB | rgb(45, 69, 171) |
| HSL | hsl(229, 58%, 42%) |
| HSV | hsv(229, 74%, 67%) |
| CMYK | cmyk(73.7%, 59.6%, 0%, 32.9%) |
| CIE-LAB | lab(33.46, 27.15, -57.31) |
| CIE-LCH | lch(33.46, 63.42, 295.35°) |
| OKLab | oklab(43.68% -0.0044 -0.1654) |
| OKLCH | oklch(43.68% 0.165 268.5) |
| XYZ | xyz(10.5585, 7.7533, 39.4603) |
| Luminance | 0.0775 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.41
Blue Blue
#2242C7
ΔE00 3.89
Sapphire (survey)
#2138AB
ΔE00 3.90
Blueberry
#464196
ΔE00 5.32
Cobalt (survey)
#1E488F
ΔE00 5.49
Sapphire
#0F52BA
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D45AB #AB932D
analogous
#2D84AB #2D45AB #542DAB
triadic
#2D45AB #AB2D45 #45AB2D
tetradic
#2D45AB #AB2D84 #AB932D #2DAB54
square
#2D45AB #AB2D84 #AB932D #2DAB54
split-complementary
#2D45AB #AB542D #84AB2D
monochromatic
#141E4A #20317B #2D45AB #4761CE #778ADB
Accessibility & contrast
On white
8.23
#2D45AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2D45AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D45AB
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D45AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D45AB | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 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: #2d45ab; /* rgb */ color: rgb(45, 69, 171); /* oklch */ color: oklch(43.7% 0.165 268.5);
Tailwind
colors: {
custom: {
50: '#7878c5',
500: '#2d45ab',
950: '#000000',
},
}SCSS
$custom: #2d45ab; $custom-light: #7878c5; $custom-dark: #000000;
JSON
{
"hex": "#2d45ab",
"rgb": {
"r": 45,
"g": 69,
"b": 171
},
"hsl": {
"h": 228.571,
"s": 58.333,
"l": 42.353
},
"oklch": {
"l": 0.43679,
"c": 0.16546,
"h": 268.5
},
"luminance": 0.07754
}Semantic roles & 50–950 ramp
primary
#2D45AB
secondary
#C3B371
accent
#C446E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82