#2545B2#2545B2
#2545B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.177 H 266.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2545B2 |
|---|---|
| RGB | rgb(37, 69, 178) |
| HSL | hsl(226, 66%, 42%) |
| HSV | hsv(226, 79%, 70%) |
| CMYK | cmyk(79.2%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(33.70, 28.90, -61.11) |
| CIE-LCH | lch(33.70, 67.60, 295.31°) |
| OKLab | oklab(43.94% -0.0113 -0.1767) |
| OKLCH | oklch(43.94% 0.177 266.3) |
| XYZ | xyz(10.9241, 7.8626, 43.0527) |
| Luminance | 0.0786 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.07
Blue Blue
#2242C7
ΔE00 3.10
Sapphire (survey)
#2138AB
ΔE00 3.97
Sapphire
#0F52BA
ΔE00 5.00
Blue (survey)
#0343DF
ΔE00 5.66
Cobalt (survey)
#1E488F
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2545B2 #B29225
analogous
#258CB2 #2545B2 #4C25B2
triadic
#2545B2 #B22545 #45B225
tetradic
#2545B2 #B2258C #B29225 #25B24C
square
#2545B2 #B2258C #B29225 #25B24C
split-complementary
#2545B2 #B24C25 #8CB225
monochromatic
#101E4D #1A317F #2545B2 #3D60D7 #708AE1
Accessibility & contrast
On white
8.16
#2545B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2545B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2545B2
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2545B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2545B2 | 1.00 | 8.16 | 2.57 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2545b2; /* rgb */ color: rgb(37, 69, 178); /* oklch */ color: oklch(43.9% 0.177 266.3);
Tailwind
colors: {
custom: {
50: '#7778ca',
500: '#2545b2',
950: '#000000',
},
}SCSS
$custom: #2545b2; $custom-light: #7778ca; $custom-dark: #000000;
JSON
{
"hex": "#2545b2",
"rgb": {
"r": 37,
"g": 69,
"b": 178
},
"hsl": {
"h": 226.383,
"s": 65.581,
"l": 42.157
},
"oklch": {
"l": 0.43936,
"c": 0.17707,
"h": 266.3
},
"luminance": 0.07864
}Semantic roles & 50–950 ramp
primary
#2545B2
secondary
#C8B36B
accent
#C23FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82