#2542A2#2542A2
#2542A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.159 H 266.5°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2542A2 |
|---|---|
| RGB | rgb(37, 66, 162) |
| HSL | hsl(226, 63%, 39%) |
| HSV | hsv(226, 77%, 64%) |
| CMYK | cmyk(77.2%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.57, 24.77, -55.01) |
| CIE-LCH | lch(31.57, 60.33, 294.24°) |
| OKLab | oklab(41.94% -0.0096 -0.1588) |
| OKLCH | oklch(41.94% 0.159 266.5) |
| XYZ | xyz(9.2305, 6.8974, 35.0203) |
| Luminance | 0.0690 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.10
Sapphire (survey)
#2138AB
ΔE00 3.63
Cobalt (survey)
#1E488F
ΔE00 4.48
Blue Blue
#2242C7
ΔE00 5.15
Blueberry
#464196
ΔE00 5.40
Sapphire
#0F52BA
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2542A2 #A28525
analogous
#2581A2 #2542A2 #4725A2
triadic
#2542A2 #A22542 #42A225
tetradic
#2542A2 #A22581 #A28525 #25A247
square
#2542A2 #A22581 #A28525 #25A247
split-complementary
#2542A2 #A24725 #81A225
monochromatic
#0E193E #1A2E70 #2542A2 #3458D1 #6581DC
Accessibility & contrast
On white
8.83
#2542A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#2542A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2542A2
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2542A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2542A2 | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2542a2; /* rgb */ color: rgb(37, 66, 162); /* oklch */ color: oklch(41.9% 0.159 266.5);
Tailwind
colors: {
custom: {
50: '#7376be',
500: '#2542a2',
950: '#000000',
},
}SCSS
$custom: #2542a2; $custom-light: #7376be; $custom-dark: #000000;
JSON
{
"hex": "#2542a2",
"rgb": {
"r": 37,
"g": 66,
"b": 162
},
"hsl": {
"h": 226.08,
"s": 62.814,
"l": 39.02
},
"oklch": {
"l": 0.41938,
"c": 0.15913,
"h": 266.5
},
"luminance": 0.06898
}Semantic roles & 50–950 ramp
primary
#2542A2
secondary
#C2AB61
accent
#C042E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81