#254C9D#254C9D

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

Color values

HEX#254C9D
RGBrgb(37, 76, 157)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 76%, 62%)
CMYKcmyk(76.4%, 51.6%, 0%, 38.4%)
CIE-LABlab(33.97, 16.07, -48.10)
CIE-LCHlch(33.97, 50.71, 288.48°)
OKLaboklab(43.63% -0.0177 -0.1383)
OKLCHoklch(43.63% 0.139 262.7)
XYZxyz(9.4310, 7.9955, 32.9380)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C9D #9D7625
analogous
#25889D #254C9D #3A259D
triadic
#254C9D #9D254C #4C9D25
tetradic
#254C9D #9D2588 #9D7625 #259D3A
square
#254C9D #9D2588 #9D7625 #259D3A
split-complementary
#254C9D #9D3A25 #889D25
monochromatic
#0E1C3A #19346B #254C9D #3164CE #6289DA

Accessibility & contrast

On white

8.08
#254C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#254C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C9D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C9D#FFFFFF#000000##FFFFFF
##254C9D1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1956A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254c9d;
/* rgb */ color: rgb(37, 76, 157);
/* oklch */ color: oklch(43.6% 0.139 262.7);
Tailwind
colors: {
  custom: {
    50: '#717dba',
    500: '#254c9d',
    950: '#000000',
  },
}
SCSS
$custom: #254c9d;
$custom-light: #717dba;
$custom-dark: #000000;
JSON
{
  "hex": "#254c9d",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 157
  },
  "hsl": {
    "h": 220.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43632,
    "c": 0.13948,
    "h": 262.7
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#254C9D
secondary
#BFA05E
accent
#B043E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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