#2542A7#2542A7

#2542A7 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.166 H 266.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2542A7
RGBrgb(37, 66, 167)
HSLhsl(227, 64%, 40%)
HSVhsv(227, 78%, 65%)
CMYKcmyk(77.8%, 60.5%, 0%, 34.5%)
CIE-LABlab(31.99, 26.69, -57.34)
CIE-LCHlch(31.99, 63.25, 294.96°)
OKLaboklab(42.38% -0.0095 -0.1657)
OKLCHoklch(42.38% 0.166 266.7)
XYZxyz(9.6838, 7.0787, 37.4077)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2542A7 #A78A25
analogous
#2583A7 #2542A7 #4925A7
triadic
#2542A7 #A72542 #42A725
tetradic
#2542A7 #A72583 #A78A25 #25A749
square
#2542A7 #A72583 #A78A25 #25A749
split-complementary
#2542A7 #A74925 #83A725
monochromatic
#0F1A43 #1A2E75 #2542A7 #3759D3 #6983DE

Accessibility & contrast

On white

8.69
#2542A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2542A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2542A7#FFFFFF#000000##FFFFFF
##2542A71.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2542a7;
/* rgb */ color: rgb(37, 66, 167);
/* oklch */ color: oklch(42.4% 0.166 266.7);
Tailwind
colors: {
  custom: {
    50: '#7476c2',
    500: '#2542a7',
    950: '#000000',
  },
}
SCSS
$custom: #2542a7;
$custom-light: #7476c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2542a7",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 226.615,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.42376,
    "c": 0.16596,
    "h": 266.7
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#2542A7
secondary
#C4AE64
accent
#C241E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2542A7

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

Preview Lab → · Contrast checker → · Palette generator →

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