#2542AB#2542AB
#2542AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.171 H 266.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2542AB |
|---|---|
| RGB | rgb(37, 66, 171) |
| HSL | hsl(227, 64%, 41%) |
| HSV | hsv(227, 78%, 67%) |
| CMYK | cmyk(78.4%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.32, 28.22, -59.19) |
| CIE-LCH | lch(32.32, 65.57, 295.49°) |
| OKLab | oklab(42.73% -0.0095 -0.1711) |
| OKLCH | oklch(42.73% 0.171 266.8) |
| XYZ | xyz(10.0593, 7.2289, 39.3853) |
| Luminance | 0.0723 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.07
Cobalt
#0047AB
ΔE00 3.29
Blue Blue
#2242C7
ΔE00 3.83
Cobalt (survey)
#1E488F
ΔE00 5.54
Blueberry
#464196
ΔE00 5.65
Sapphire
#0F52BA
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2542AB #AB8E25
analogous
#2585AB #2542AB #4B25AB
triadic
#2542AB #AB2542 #42AB25
tetradic
#2542AB #AB2585 #AB8E25 #25AB4B
square
#2542AB #AB2585 #AB8E25 #25AB4B
split-complementary
#2542AB #AB4B25 #85AB25
monochromatic
#0F1B46 #1A2F79 #2542AB #395BD4 #6B84DF
Accessibility & contrast
On white
8.59
#2542AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2542AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2542AB
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2542AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2542AB | 1.00 | 8.59 | 2.45 | 8.59 |
| #FFFFFF | 8.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2542ab; /* rgb */ color: rgb(37, 66, 171); /* oklch */ color: oklch(42.7% 0.171 266.8);
Tailwind
colors: {
custom: {
50: '#7576c5',
500: '#2542ab',
950: '#000000',
},
}SCSS
$custom: #2542ab; $custom-light: #7576c5; $custom-dark: #000000;
JSON
{
"hex": "#2542ab",
"rgb": {
"r": 37,
"g": 66,
"b": 171
},
"hsl": {
"h": 227.015,
"s": 64.423,
"l": 40.784
},
"oklch": {
"l": 0.42731,
"c": 0.17137,
"h": 266.8
},
"luminance": 0.0723
}Semantic roles & 50–950 ramp
primary
#2542AB
secondary
#C5B167
accent
#C340E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82