#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
RGBrgb(37, 66, 162)
HSLhsl(226, 63%, 39%)
HSVhsv(226, 77%, 64%)
CMYKcmyk(77.2%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.57, 24.77, -55.01)
CIE-LCHlch(31.57, 60.33, 294.24°)
OKLaboklab(41.94% -0.0096 -0.1588)
OKLCHoklch(41.94% 0.159 266.5)
XYZxyz(9.2305, 6.8974, 35.0203)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##2542A21.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.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

Preview Lab

Preview with #2542A2

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

Preview Lab → · Contrast checker → · Palette generator →

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