#254C9C#254C9C

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

Color values

HEX#254C9C
RGBrgb(37, 76, 156)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 76%, 61%)
CMYKcmyk(76.3%, 51.3%, 0%, 38.8%)
CIE-LABlab(33.90, 15.68, -47.61)
CIE-LCHlch(33.90, 50.13, 288.23°)
OKLaboklab(43.56% -0.0178 -0.1369)
OKLCHoklch(43.56% 0.138 262.6)
XYZxyz(9.3460, 7.9615, 32.4902)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C9C #9C7525
analogous
#25879C #254C9C #39259C
triadic
#254C9C #9C254C #4C9C25
tetradic
#254C9C #9C2587 #9C7525 #259C39
square
#254C9C #9C2587 #9C7525 #259C39
split-complementary
#254C9C #9C3925 #879C25
monochromatic
#0E1C39 #19346B #254C9C #3164CD #6289DA

Accessibility & contrast

On white

8.10
#254C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#254C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C9C
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C9C#FFFFFF#000000##FFFFFF
##254C9C1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254c9c;
/* rgb */ color: rgb(37, 76, 156);
/* oklch */ color: oklch(43.6% 0.138 262.6);
Tailwind
colors: {
  custom: {
    50: '#717dba',
    500: '#254c9c',
    950: '#000000',
  },
}
SCSS
$custom: #254c9c;
$custom-light: #717dba;
$custom-dark: #000000;
JSON
{
  "hex": "#254c9c",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 156
  },
  "hsl": {
    "h": 220.336,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43555,
    "c": 0.13807,
    "h": 262.6
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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