#2542B3#2542B3
#2542B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.182 H 267.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2542B3 |
|---|---|
| RGB | rgb(37, 66, 179) |
| HSL | hsl(228, 66%, 42%) |
| HSV | hsv(228, 79%, 70%) |
| CMYK | cmyk(79.3%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(33.01, 31.25, -62.82) |
| CIE-LCH | lch(33.01, 70.17, 296.45°) |
| OKLab | oklab(43.46% -0.0095 -0.1818) |
| OKLCH | oklch(43.46% 0.182 267) |
| XYZ | xyz(10.8450, 7.5432, 43.5235) |
| Luminance | 0.0754 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.69
Sapphire (survey)
#2138AB
ΔE00 3.07
Cobalt
#0047AB
ΔE00 3.81
Blue (survey)
#0343DF
ΔE00 5.46
Ocean Blue
#4F42B5
ΔE00 5.48
Sapphire
#0F52BA
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2542B3 #B39625
analogous
#2589B3 #2542B3 #4F25B3
triadic
#2542B3 #B32542 #42B325
tetradic
#2542B3 #B32589 #B39625 #25B34F
square
#2542B3 #B32589 #B39625 #25B34F
split-complementary
#2542B3 #B34F25 #89B325
monochromatic
#101D4E #1B2F80 #2542B3 #3E5DD7 #7188E2
Accessibility & contrast
On white
8.37
#2542B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2542B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2542B3
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2542B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2542B3 | 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)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2542b3; /* rgb */ color: rgb(37, 66, 179); /* oklch */ color: oklch(43.5% 0.182 267.0);
Tailwind
colors: {
custom: {
50: '#7776cb',
500: '#2542b3',
950: '#000000',
},
}SCSS
$custom: #2542b3; $custom-light: #7776cb; $custom-dark: #000000;
JSON
{
"hex": "#2542b3",
"rgb": {
"r": 37,
"g": 66,
"b": 179
},
"hsl": {
"h": 227.746,
"s": 65.741,
"l": 42.353
},
"oklch": {
"l": 0.43456,
"c": 0.18201,
"h": 267
},
"luminance": 0.07544
}Semantic roles & 50–950 ramp
primary
#2542B3
secondary
#C8B56B
accent
#C63FE9
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82