#2542B2#2542B2

#2542B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.181 H 267.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2542B2
RGBrgb(37, 66, 178)
HSLhsl(228, 66%, 42%)
HSVhsv(228, 79%, 70%)
CMYKcmyk(79.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(32.93, 30.87, -62.37)
CIE-LCHlch(32.93, 69.59, 296.33°)
OKLaboklab(43.36% -0.0095 -0.1804)
OKLCHoklch(43.36% 0.181 267)
XYZxyz(10.7442, 7.5029, 42.9928)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542B2 #B29525
analogous
#2588B2 #2542B2 #4F25B2
triadic
#2542B2 #B22542 #42B225
tetradic
#2542B2 #B22588 #B29525 #25B24F
square
#2542B2 #B22588 #B29525 #25B24F
split-complementary
#2542B2 #B24F25 #88B225
monochromatic
#101C4D #1A2F7F #2542B2 #3D5DD7 #7087E1

Accessibility & contrast

On white

8.40
#2542B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2542B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542B2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542B2#FFFFFF#000000##FFFFFF
##2542B21.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2542b2;
/* rgb */ color: rgb(37, 66, 178);
/* oklch */ color: oklch(43.4% 0.181 267.0);
Tailwind
colors: {
  custom: {
    50: '#7776ca',
    500: '#2542b2',
    950: '#000000',
  },
}
SCSS
$custom: #2542b2;
$custom-light: #7776ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2542b2",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 227.66,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43365,
    "c": 0.18069,
    "h": 267
  },
  "luminance": 0.07504
}

Semantic roles & 50–950 ramp

primary
#2542B2
secondary
#C8B56B
accent
#C63FE9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2542B2

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

Preview Lab → · Contrast checker → · Palette generator →

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