#254D9D#254D9D

#254D9D is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.138 H 262.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#254D9D
RGBrgb(37, 77, 157)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 76%, 62%)
CMYKcmyk(76.4%, 51%, 0%, 38.4%)
CIE-LABlab(34.26, 15.40, -47.63)
CIE-LCHlch(34.26, 50.06, 287.92°)
OKLaboklab(43.85% -0.0185 -0.137)
OKLCHoklch(43.85% 0.138 262.3)
XYZxyz(9.5004, 8.1343, 32.9611)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D9D #9D7525
analogous
#25899D #254D9D #39259D
triadic
#254D9D #9D254D #4D9D25
tetradic
#254D9D #9D2589 #9D7525 #259D39
square
#254D9D #9D2589 #9D7525 #259D39
split-complementary
#254D9D #9D3925 #899D25
monochromatic
#0E1C3A #19356B #254D9D #3165CE #628ADA

Accessibility & contrast

On white

7.99
#254D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D9D
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D9D#FFFFFF#000000##FFFFFF
##254D9D1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C56A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254d9d;
/* rgb */ color: rgb(37, 77, 157);
/* oklch */ color: oklch(43.9% 0.138 262.3);
Tailwind
colors: {
  custom: {
    50: '#717eba',
    500: '#254d9d',
    950: '#000000',
  },
}
SCSS
$custom: #254d9d;
$custom-light: #717eba;
$custom-dark: #000000;
JSON
{
  "hex": "#254d9d",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 157
  },
  "hsl": {
    "h": 220,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43851,
    "c": 0.13821,
    "h": 262.3
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#254D9D
secondary
#BF9F5E
accent
#AF43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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