#2542A3#2542A3

#2542A3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.161 H 266.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2542A3
RGBrgb(37, 66, 163)
HSLhsl(226, 63%, 39%)
HSVhsv(226, 77%, 64%)
CMYKcmyk(77.3%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.65, 25.16, -55.48)
CIE-LCHlch(31.65, 60.92, 294.39°)
OKLaboklab(42.03% -0.0096 -0.1602)
OKLCHoklch(42.03% 0.161 266.6)
XYZxyz(9.3197, 6.9330, 35.4903)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542A3 #A38625
analogous
#2581A3 #2542A3 #4725A3
triadic
#2542A3 #A32542 #42A325
tetradic
#2542A3 #A32581 #A38625 #25A347
square
#2542A3 #A32581 #A38625 #25A347
split-complementary
#2542A3 #A34725 #81A325
monochromatic
#0E1A3F #1A2E71 #2542A3 #3458D1 #6681DC

Accessibility & contrast

On white

8.80
#2542A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2542A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542A3
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542A3#FFFFFF#000000##FFFFFF
##2542A31.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2542a3;
/* rgb */ color: rgb(37, 66, 163);
/* oklch */ color: oklch(42.0% 0.161 266.6);
Tailwind
colors: {
  custom: {
    50: '#7376bf',
    500: '#2542a3',
    950: '#000000',
  },
}
SCSS
$custom: #2542a3;
$custom-light: #7376bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2542a3",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 226.19,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42025,
    "c": 0.16051,
    "h": 266.6
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#2542A3
secondary
#C2AC62
accent
#C042E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2542A3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2542A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva