#254987#254987

#254987 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.3% C 0.112 H 260.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#254987
RGBrgb(37, 73, 135)
HSLhsl(218, 57%, 34%)
HSVhsv(218, 73%, 53%)
CMYKcmyk(72.6%, 45.9%, 0%, 47.1%)
CIE-LABlab(31.59, 9.48, -38.51)
CIE-LCHlch(31.59, 39.66, 283.82°)
OKLaboklab(41.33% -0.0185 -0.1102)
OKLCHoklch(41.33% 0.112 260.5)
XYZxyz(7.5171, 6.9069, 23.8540)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254987 #876325
analogous
#257A87 #254987 #322587
triadic
#254987 #872549 #498725
tetradic
#254987 #87257A #876325 #258732
square
#254987 #87257A #876325 #258732
split-complementary
#254987 #873225 #7A8725
monochromatic
#0B1527 #182F57 #254987 #3263B7 #5683D1

Accessibility & contrast

On white

8.82
#254987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#254987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254987
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254987#FFFFFF#000000##FFFFFF
##2549871.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4F89
Deuteranopia (green-blind)
#184686
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254987;
/* rgb */ color: rgb(37, 73, 135);
/* oklch */ color: oklch(41.3% 0.112 260.5);
Tailwind
colors: {
  custom: {
    50: '#6c7baa',
    500: '#254987',
    950: '#000000',
  },
}
SCSS
$custom: #254987;
$custom-light: #6c7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#254987",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 217.959,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41328,
    "c": 0.11173,
    "h": 260.5
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#254987
secondary
#B59153
accent
#A848E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254987

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

Preview Lab → · Contrast checker → · Palette generator →

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