#254D97#254D97

#254D97 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.130 H 261.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#254D97
RGBrgb(37, 77, 151)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 75%, 59%)
CMYKcmyk(75.5%, 49%, 0%, 40.8%)
CIE-LABlab(33.85, 13.05, -44.68)
CIE-LCHlch(33.85, 46.54, 286.28°)
OKLaboklab(43.4% -0.0194 -0.1283)
OKLCHoklch(43.4% 0.13 261.4)
XYZxyz(9.0007, 7.9344, 30.3293)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D97 #976F25
analogous
#258697 #254D97 #362597
triadic
#254D97 #97254D #4D9725
tetradic
#254D97 #972586 #976F25 #259736
square
#254D97 #972586 #976F25 #259736
split-complementary
#254D97 #973625 #869725
monochromatic
#0D1B35 #193466 #254D97 #3166C8 #5F89D8

Accessibility & contrast

On white

8.12
#254D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#254D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D97
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D97#FFFFFF#000000##FFFFFF
##254D971.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254d97;
/* rgb */ color: rgb(37, 77, 151);
/* oklch */ color: oklch(43.4% 0.130 261.4);
Tailwind
colors: {
  custom: {
    50: '#707eb6',
    500: '#254d97',
    950: '#000000',
  },
}
SCSS
$custom: #254d97;
$custom-light: #707eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254d97",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 218.947,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.12972,
    "h": 261.4
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

primary
#254D97
secondary
#BD9A5B
accent
#AC44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254D97

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

Preview Lab → · Contrast checker → · Palette generator →

#254D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva