#254D9C#254D9C

#254D9C is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.137 H 262.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#254D9C
RGBrgb(37, 77, 156)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 76%, 61%)
CMYKcmyk(76.3%, 50.6%, 0%, 38.8%)
CIE-LABlab(34.19, 15.01, -47.14)
CIE-LCHlch(34.19, 49.48, 287.66°)
OKLaboklab(43.78% -0.0187 -0.1355)
OKLCHoklch(43.78% 0.137 262.2)
XYZxyz(9.4154, 8.1003, 32.5133)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D9C #9C7425
analogous
#25889C #254D9C #38259C
triadic
#254D9C #9C254D #4D9C25
tetradic
#254D9C #9C2588 #9C7425 #259C38
square
#254D9C #9C2588 #9C7425 #259C38
split-complementary
#254D9C #9C3825 #889C25
monochromatic
#0E1C39 #19356B #254D9C #3165CD #628ADA

Accessibility & contrast

On white

8.01
#254D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#254D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D9C
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D9C#FFFFFF#000000##FFFFFF
##254D9C1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E569F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254d9c;
/* rgb */ color: rgb(37, 77, 156);
/* oklch */ color: oklch(43.8% 0.137 262.2);
Tailwind
colors: {
  custom: {
    50: '#717eba',
    500: '#254d9c',
    950: '#000000',
  },
}
SCSS
$custom: #254d9c;
$custom-light: #717eba;
$custom-dark: #000000;
JSON
{
  "hex": "#254d9c",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 219.832,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43775,
    "c": 0.1368,
    "h": 262.2
  },
  "luminance": 0.08101
}

Semantic roles & 50–950 ramp

primary
#254D9C
secondary
#BF9E5E
accent
#AE43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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