#254B9D#254B9D

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

Color values

HEX#254B9D
RGBrgb(37, 75, 157)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 76%, 62%)
CMYKcmyk(76.4%, 52.2%, 0%, 38.4%)
CIE-LABlab(33.69, 16.75, -48.56)
CIE-LCHlch(33.69, 51.37, 289.03°)
OKLaboklab(43.41% -0.0169 -0.1397)
OKLCHoklch(43.41% 0.141 263.1)
XYZxyz(9.3627, 7.8587, 32.9152)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B9D #9D7725
analogous
#25879D #254B9D #3B259D
triadic
#254B9D #9D254B #4B9D25
tetradic
#254B9D #9D2587 #9D7725 #259D3B
square
#254B9D #9D2587 #9D7725 #259D3B
split-complementary
#254B9D #9D3B25 #879D25
monochromatic
#0E1C3A #19336B #254B9D #3163CE #6288DA

Accessibility & contrast

On white

8.16
#254B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B9D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B9D#FFFFFF#000000##FFFFFF
##254B9D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1655A0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254b9d;
/* rgb */ color: rgb(37, 75, 157);
/* oklch */ color: oklch(43.4% 0.141 263.1);
Tailwind
colors: {
  custom: {
    50: '#717cba',
    500: '#254b9d',
    950: '#000000',
  },
}
SCSS
$custom: #254b9d;
$custom-light: #717cba;
$custom-dark: #000000;
JSON
{
  "hex": "#254b9d",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 157
  },
  "hsl": {
    "h": 221,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.14075,
    "h": 263.1
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#254B9D
secondary
#BFA15E
accent
#B243E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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