#2542BC#2542BC

#2542BC is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.194 H 267.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2542BC
RGBrgb(37, 66, 188)
HSLhsl(228, 67%, 44%)
HSVhsv(228, 80%, 74%)
CMYKcmyk(80.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(33.81, 34.61, -66.83)
CIE-LCHlch(33.81, 75.26, 297.38°)
OKLaboklab(44.29% -0.0097 -0.1935)
OKLCHoklch(44.29% 0.194 267.1)
XYZxyz(11.7851, 7.9192, 48.4746)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542BC #BC9F25
analogous
#258EBC #2542BC #5425BC
triadic
#2542BC #BC2542 #42BC25
tetradic
#2542BC #BC258E #BC9F25 #25BC54
square
#2542BC #BC258E #BC9F25 #25BC54
split-complementary
#2542BC #BC5425 #8EBC25
monochromatic
#111E56 #1B3089 #2542BC #4461DA #778CE4

Accessibility & contrast

On white

8.13
#2542BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2542BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542BC
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542BC#FFFFFF#000000##FFFFFF
##2542BC1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2542bc;
/* rgb */ color: rgb(37, 66, 188);
/* oklch */ color: oklch(44.3% 0.194 267.1);
Tailwind
colors: {
  custom: {
    50: '#7a76d1',
    500: '#2542bc',
    950: '#000000',
  },
}
SCSS
$custom: #2542bc;
$custom-light: #7a76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2542bc",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 228.477,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.19373,
    "h": 267.1
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#2542BC
secondary
#CCBA71
accent
#C93EEA
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2542BC

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

Preview Lab → · Contrast checker → · Palette generator →

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