#2542BA#2542BA
#2542BA is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.191 H 267.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2542BA |
|---|---|
| RGB | rgb(37, 66, 186) |
| HSL | hsl(228, 67%, 44%) |
| HSV | hsv(228, 80%, 73%) |
| CMYK | cmyk(80.1%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(33.63, 33.87, -65.95) |
| CIE-LCH | lch(33.63, 74.13, 297.18°) |
| OKLab | oklab(44.11% -0.0097 -0.1909) |
| OKLCH | oklch(44.11% 0.191 267.1) |
| XYZ | xyz(11.5710, 7.8336, 47.3470) |
| Luminance | 0.0784 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.71
Sapphire (survey)
#2138AB
ΔE00 3.42
Cobalt
#0047AB
ΔE00 4.43
Blue (survey)
#0343DF
ΔE00 4.52
Ocean Blue
#4F42B5
ΔE00 5.18
Sapphire
#0F52BA
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2542BA #BA9D25
analogous
#258CBA #2542BA #5225BA
triadic
#2542BA #BA2542 #42BA25
tetradic
#2542BA #BA258C #BA9D25 #25BA52
square
#2542BA #BA258C #BA9D25 #25BA52
split-complementary
#2542BA #BA5225 #8CBA25
monochromatic
#111E54 #1B3087 #2542BA #4360DA #768BE4
Accessibility & contrast
On white
8.18
#2542BA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2542BA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2542BA
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2542BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2542BA | 1.00 | 8.18 | 2.57 | 8.18 |
| #FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2542ba; /* rgb */ color: rgb(37, 66, 186); /* oklch */ color: oklch(44.1% 0.191 267.1);
Tailwind
colors: {
custom: {
50: '#7976d0',
500: '#2542ba',
950: '#000000',
},
}SCSS
$custom: #2542ba; $custom-light: #7976d0; $custom-dark: #000000;
JSON
{
"hex": "#2542ba",
"rgb": {
"r": 37,
"g": 66,
"b": 186
},
"hsl": {
"h": 228.322,
"s": 66.816,
"l": 43.725
},
"oklch": {
"l": 0.44105,
"c": 0.19115,
"h": 267.1
},
"luminance": 0.07835
}Semantic roles & 50–950 ramp
primary
#2542BA
secondary
#CBB970
accent
#C83EEA
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82