#2542A4#2542A4

#2542A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.162 H 266.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2542A4
RGBrgb(37, 66, 164)
HSLhsl(226, 63%, 39%)
HSVhsv(226, 77%, 64%)
CMYKcmyk(77.4%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.74, 25.54, -55.95)
CIE-LCHlch(31.74, 61.50, 294.54°)
OKLaboklab(42.11% -0.0096 -0.1616)
OKLCHoklch(42.11% 0.162 266.6)
XYZxyz(9.4097, 6.9690, 35.9640)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542A4 #A48725
analogous
#2582A4 #2542A4 #4825A4
triadic
#2542A4 #A42542 #42A425
tetradic
#2542A4 #A42582 #A48725 #25A448
square
#2542A4 #A42582 #A48725 #25A448
split-complementary
#2542A4 #A44825 #82A425
monochromatic
#0E1A40 #1A2E72 #2542A4 #3559D1 #6782DD

Accessibility & contrast

On white

8.77
#2542A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2542A4
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542A4#FFFFFF#000000##FFFFFF
##2542A41.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2542a4;
/* rgb */ color: rgb(37, 66, 164);
/* oklch */ color: oklch(42.1% 0.162 266.6);
Tailwind
colors: {
  custom: {
    50: '#7476c0',
    500: '#2542a4',
    950: '#000000',
  },
}
SCSS
$custom: #2542a4;
$custom-light: #7476c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2542a4",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 226.299,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42112,
    "c": 0.16187,
    "h": 266.6
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2542A4

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

Preview Lab → · Contrast checker → · Palette generator →

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