#2542BA#2542BA

#2542BA is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.191 H 267.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2542BA
RGBrgb(37, 66, 186)
HSLhsl(228, 67%, 44%)
HSVhsv(228, 80%, 73%)
CMYKcmyk(80.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(33.63, 33.87, -65.95)
CIE-LCHlch(33.63, 74.13, 297.18°)
OKLaboklab(44.11% -0.0097 -0.1909)
OKLCHoklch(44.11% 0.191 267.1)
XYZxyz(11.5710, 7.8336, 47.3470)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542BA #BA9D25
analogous
#258CBA #2542BA #5225BA
triadic
#2542BA #BA2542 #42BA25
tetradic
#2542BA #BA258C #BA9D25 #25BA52
square
#2542BA #BA258C #BA9D25 #25BA52
split-complementary
#2542BA #BA5225 #8CBA25
monochromatic
#111E54 #1B3087 #2542BA #4360DA #768BE4

Accessibility & contrast

On white

8.18
#2542BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2542BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2542BA
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2542BA#FFFFFF#000000##FFFFFF
##2542BA1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2542ba;
/* rgb */ color: rgb(37, 66, 186);
/* oklch */ color: oklch(44.1% 0.191 267.1);
Tailwind
colors: {
  custom: {
    50: '#7976d0',
    500: '#2542ba',
    950: '#000000',
  },
}
SCSS
$custom: #2542ba;
$custom-light: #7976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2542ba",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 228.322,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44105,
    "c": 0.19115,
    "h": 267.1
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#2542BA
secondary
#CBB970
accent
#C83EEA
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2542BA

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

Preview Lab → · Contrast checker → · Palette generator →

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