#2542AA#2542AA

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

Color values

HEX#2542AA
RGBrgb(37, 66, 170)
HSLhsl(227, 64%, 41%)
HSVhsv(227, 78%, 67%)
CMYKcmyk(78.2%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.24, 27.84, -58.73)
CIE-LCHlch(32.24, 64.99, 295.36°)
OKLaboklab(42.64% -0.0095 -0.1698)
OKLCHoklch(42.64% 0.17 266.8)
XYZxyz(9.9643, 7.1909, 38.8852)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542AA #AA8D25
analogous
#2584AA #2542AA #4A25AA
triadic
#2542AA #AA2542 #42AA25
tetradic
#2542AA #AA2584 #AA8D25 #25AA4A
square
#2542AA #AA2584 #AA8D25 #25AA4A
split-complementary
#2542AA #AA4A25 #84AA25
monochromatic
#0F1B45 #1A2E78 #2542AA #385AD4 #6B84DF

Accessibility & contrast

On white

8.61
#2542AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2542AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2542AA#FFFFFF#000000##FFFFFF
##2542AA1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2542aa;
/* rgb */ color: rgb(37, 66, 170);
/* oklch */ color: oklch(42.6% 0.170 266.8);
Tailwind
colors: {
  custom: {
    50: '#7576c4',
    500: '#2542aa',
    950: '#000000',
  },
}
SCSS
$custom: #2542aa;
$custom-light: #7576c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2542aa",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 226.917,
    "s": 64.251,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42642,
    "c": 0.17002,
    "h": 266.8
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#2542AA
secondary
#C5B066
accent
#C341E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2542AA

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

Preview Lab → · Contrast checker → · Palette generator →

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