#2542B3#2542B3

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

Color values

HEX#2542B3
RGBrgb(37, 66, 179)
HSLhsl(228, 66%, 42%)
HSVhsv(228, 79%, 70%)
CMYKcmyk(79.3%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.01, 31.25, -62.82)
CIE-LCHlch(33.01, 70.17, 296.45°)
OKLaboklab(43.46% -0.0095 -0.1818)
OKLCHoklch(43.46% 0.182 267)
XYZxyz(10.8450, 7.5432, 43.5235)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542B3 #B39625
analogous
#2589B3 #2542B3 #4F25B3
triadic
#2542B3 #B32542 #42B325
tetradic
#2542B3 #B32589 #B39625 #25B34F
square
#2542B3 #B32589 #B39625 #25B34F
split-complementary
#2542B3 #B34F25 #89B325
monochromatic
#101D4E #1B2F80 #2542B3 #3E5DD7 #7188E2

Accessibility & contrast

On white

8.37
#2542B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2542B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542B3
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542B3#FFFFFF#000000##FFFFFF
##2542B31.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2542b3;
/* rgb */ color: rgb(37, 66, 179);
/* oklch */ color: oklch(43.5% 0.182 267.0);
Tailwind
colors: {
  custom: {
    50: '#7776cb',
    500: '#2542b3',
    950: '#000000',
  },
}
SCSS
$custom: #2542b3;
$custom-light: #7776cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2542b3",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 227.746,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43456,
    "c": 0.18201,
    "h": 267
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#2542B3
secondary
#C8B56B
accent
#C63FE9
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2542B3

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

Preview Lab → · Contrast checker → · Palette generator →

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