#2542B2#2542B2
#2542B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.181 H 267.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2542B2 |
|---|---|
| RGB | rgb(37, 66, 178) |
| HSL | hsl(228, 66%, 42%) |
| HSV | hsv(228, 79%, 70%) |
| CMYK | cmyk(79.2%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(32.93, 30.87, -62.37) |
| CIE-LCH | lch(32.93, 69.59, 296.33°) |
| OKLab | oklab(43.36% -0.0095 -0.1804) |
| OKLCH | oklch(43.36% 0.181 267) |
| XYZ | xyz(10.7442, 7.5029, 42.9928) |
| Luminance | 0.0750 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.83
Sapphire (survey)
#2138AB
ΔE00 3.04
Cobalt
#0047AB
ΔE00 3.73
Ocean Blue
#4F42B5
ΔE00 5.54
Blue (survey)
#0343DF
ΔE00 5.60
Sapphire
#0F52BA
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2542B2 #B29525
analogous
#2588B2 #2542B2 #4F25B2
triadic
#2542B2 #B22542 #42B225
tetradic
#2542B2 #B22588 #B29525 #25B24F
square
#2542B2 #B22588 #B29525 #25B24F
split-complementary
#2542B2 #B24F25 #88B225
monochromatic
#101C4D #1A2F7F #2542B2 #3D5DD7 #7087E1
Accessibility & contrast
On white
8.40
#2542B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2542B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2542B2
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2542B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2542B2 | 1.00 | 8.40 | 2.50 | 8.40 |
| #FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2542b2; /* rgb */ color: rgb(37, 66, 178); /* oklch */ color: oklch(43.4% 0.181 267.0);
Tailwind
colors: {
custom: {
50: '#7776ca',
500: '#2542b2',
950: '#000000',
},
}SCSS
$custom: #2542b2; $custom-light: #7776ca; $custom-dark: #000000;
JSON
{
"hex": "#2542b2",
"rgb": {
"r": 37,
"g": 66,
"b": 178
},
"hsl": {
"h": 227.66,
"s": 65.581,
"l": 42.157
},
"oklch": {
"l": 0.43365,
"c": 0.18069,
"h": 267
},
"luminance": 0.07504
}Semantic roles & 50–950 ramp
primary
#2542B2
secondary
#C8B56B
accent
#C63FE9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82