#254587#254587

#254587 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.117 H 262.8°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#254587
RGBrgb(37, 69, 135)
HSLhsl(220, 57%, 34%)
HSVhsv(220, 73%, 53%)
CMYKcmyk(72.6%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.40, 12.19, -40.43)
CIE-LCHlch(30.40, 42.23, 286.78°)
OKLaboklab(40.41% -0.0146 -0.1159)
OKLCHoklch(40.41% 0.117 262.8)
XYZxyz(7.2627, 6.3981, 23.7692)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254587 #876725
analogous
#257687 #254587 #362587
triadic
#254587 #872545 #458725
tetradic
#254587 #872576 #876725 #258736
square
#254587 #872576 #876725 #258736
split-complementary
#254587 #873625 #768725
monochromatic
#0B1427 #182C57 #254587 #325EB7 #567ED1

Accessibility & contrast

On white

9.21
#254587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#254587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254587
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254587#FFFFFF#000000##FFFFFF
##2545871.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224C89
Deuteranopia (green-blind)
#094386
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254587;
/* rgb */ color: rgb(37, 69, 135);
/* oklch */ color: oklch(40.4% 0.117 262.8);
Tailwind
colors: {
  custom: {
    50: '#6d78aa',
    500: '#254587',
    950: '#000000',
  },
}
SCSS
$custom: #254587;
$custom-light: #6d78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254587",
  "rgb": {
    "r": 37,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 220.408,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40407,
    "c": 0.11683,
    "h": 262.8
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#254587
secondary
#B59553
accent
#AE48E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #254587

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

Preview Lab → · Contrast checker → · Palette generator →

#254587 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva