#254787#254787

#254787 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.9% C 0.114 H 261.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#254787
RGBrgb(37, 71, 135)
HSLhsl(219, 57%, 34%)
HSVhsv(219, 73%, 53%)
CMYKcmyk(72.6%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.99, 10.83, -39.47)
CIE-LCHlch(30.99, 40.93, 285.34°)
OKLaboklab(40.87% -0.0165 -0.1131)
OKLCHoklch(40.87% 0.114 261.7)
XYZxyz(7.3878, 6.6483, 23.8109)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254787 #876525
analogous
#257887 #254787 #342587
triadic
#254787 #872547 #478725
tetradic
#254787 #872578 #876525 #258734
square
#254787 #872578 #876525 #258734
split-complementary
#254787 #873425 #788725
monochromatic
#0B1427 #182E57 #254787 #3260B7 #5680D1

Accessibility & contrast

On white

9.01
#254787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#254787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254787
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254787#FFFFFF#000000##FFFFFF
##2547871.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E89
Deuteranopia (green-blind)
#114586
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254787;
/* rgb */ color: rgb(37, 71, 135);
/* oklch */ color: oklch(40.9% 0.114 261.7);
Tailwind
colors: {
  custom: {
    50: '#6d79aa',
    500: '#254787',
    950: '#000000',
  },
}
SCSS
$custom: #254787;
$custom-light: #6d79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254787",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 219.184,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40865,
    "c": 0.11426,
    "h": 261.7
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

primary
#254787
secondary
#B59353
accent
#AB48E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254787

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

Preview Lab → · Contrast checker → · Palette generator →

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