#2542AE#2542AE

#2542AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.175 H 266.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2542AE
RGBrgb(37, 66, 174)
HSLhsl(227, 65%, 41%)
HSVhsv(227, 79%, 68%)
CMYKcmyk(78.7%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.58, 29.36, -60.56)
CIE-LCHlch(32.58, 67.30, 295.87°)
OKLaboklab(43% -0.0095 -0.1751)
OKLCHoklch(43% 0.175 266.9)
XYZxyz(10.3485, 7.3446, 40.9084)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542AE #AE9125
analogous
#2587AE #2542AE #4D25AE
triadic
#2542AE #AE2542 #42AE25
tetradic
#2542AE #AE2587 #AE9125 #25AE4D
square
#2542AE #AE2587 #AE9125 #25AE4D
split-complementary
#2542AE #AE4D25 #87AE25
monochromatic
#101C49 #1A2F7C #2542AE #3B5CD5 #6D86E0

Accessibility & contrast

On white

8.50
#2542AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2542AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542AE
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542AE#FFFFFF#000000##FFFFFF
##2542AE1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2542ae;
/* rgb */ color: rgb(37, 66, 174);
/* oklch */ color: oklch(43.0% 0.175 266.9);
Tailwind
colors: {
  custom: {
    50: '#7676c7',
    500: '#2542ae',
    950: '#000000',
  },
}
SCSS
$custom: #2542ae;
$custom-light: #7676c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2542ae",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 227.299,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43001,
    "c": 0.17539,
    "h": 266.9
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#2542AE
secondary
#C6B368
accent
#C440E8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2542AE

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

Preview Lab → · Contrast checker → · Palette generator →

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