#254D9A#254D9A

#254D9A is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.134 H 261.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#254D9A
RGBrgb(37, 77, 154)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(76%, 50%, 0%, 39.6%)
CIE-LABlab(34.05, 14.23, -46.16)
CIE-LCHlch(34.05, 48.30, 287.13°)
OKLaboklab(43.62% -0.019 -0.1326)
OKLCHoklch(43.62% 0.134 261.9)
XYZxyz(9.2475, 8.0331, 31.6288)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D9A #9A7225
analogous
#25889A #254D9A #37259A
triadic
#254D9A #9A254D #4D9A25
tetradic
#254D9A #9A2588 #9A7225 #259A37
square
#254D9A #9A2588 #9A7225 #259A37
split-complementary
#254D9A #9A3725 #889A25
monochromatic
#0D1C37 #193469 #254D9A #3166CB #608AD9

Accessibility & contrast

On white

8.06
#254D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D9A
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D9A#FFFFFF#000000##FFFFFF
##254D9A1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20569D
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254d9a;
/* rgb */ color: rgb(37, 77, 154);
/* oklch */ color: oklch(43.6% 0.134 261.9);
Tailwind
colors: {
  custom: {
    50: '#717eb8',
    500: '#254d9a',
    950: '#000000',
  },
}
SCSS
$custom: #254d9a;
$custom-light: #717eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254d9a",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 154
  },
  "hsl": {
    "h": 219.487,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43624,
    "c": 0.13398,
    "h": 261.9
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#254D9A
secondary
#BE9D5D
accent
#AD43E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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