#2542AB#2542AB

#2542AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.171 H 266.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2542AB
RGBrgb(37, 66, 171)
HSLhsl(227, 64%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(78.4%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.32, 28.22, -59.19)
CIE-LCHlch(32.32, 65.57, 295.49°)
OKLaboklab(42.73% -0.0095 -0.1711)
OKLCHoklch(42.73% 0.171 266.8)
XYZxyz(10.0593, 7.2289, 39.3853)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542AB #AB8E25
analogous
#2585AB #2542AB #4B25AB
triadic
#2542AB #AB2542 #42AB25
tetradic
#2542AB #AB2585 #AB8E25 #25AB4B
square
#2542AB #AB2585 #AB8E25 #25AB4B
split-complementary
#2542AB #AB4B25 #85AB25
monochromatic
#0F1B46 #1A2F79 #2542AB #395BD4 #6B84DF

Accessibility & contrast

On white

8.59
#2542AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2542AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542AB
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542AB#FFFFFF#000000##FFFFFF
##2542AB1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2542ab;
/* rgb */ color: rgb(37, 66, 171);
/* oklch */ color: oklch(42.7% 0.171 266.8);
Tailwind
colors: {
  custom: {
    50: '#7576c5',
    500: '#2542ab',
    950: '#000000',
  },
}
SCSS
$custom: #2542ab;
$custom-light: #7576c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2542ab",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 227.015,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.17137,
    "h": 266.8
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#2542AB
secondary
#C5B167
accent
#C340E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2542AB

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

Preview Lab → · Contrast checker → · Palette generator →

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