#254C9E#254C9E

#254C9E is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.141 H 262.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#254C9E
RGBrgb(37, 76, 158)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 77%, 62%)
CMYKcmyk(76.6%, 51.9%, 0%, 38%)
CIE-LABlab(34.04, 16.47, -48.59)
CIE-LCHlch(34.04, 51.30, 288.72°)
OKLaboklab(43.71% -0.0176 -0.1398)
OKLCHoklch(43.71% 0.141 262.8)
XYZxyz(9.5167, 8.0298, 33.3895)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C9E #9E7725
analogous
#25889E #254C9E #3A259E
triadic
#254C9E #9E254C #4C9E25
tetradic
#254C9E #9E2588 #9E7725 #259E3A
square
#254C9E #9E2588 #9E7725 #259E3A
split-complementary
#254C9E #9E3A25 #889E25
monochromatic
#0E1C3B #19346C #254C9E #3164CF #6389DA

Accessibility & contrast

On white

8.06
#254C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C9E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C9E#FFFFFF#000000##FFFFFF
##254C9E1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1756A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254c9e;
/* rgb */ color: rgb(37, 76, 158);
/* oklch */ color: oklch(43.7% 0.141 262.8);
Tailwind
colors: {
  custom: {
    50: '#727dbb',
    500: '#254c9e',
    950: '#000000',
  },
}
SCSS
$custom: #254c9e;
$custom-light: #727dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#254c9e",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 158
  },
  "hsl": {
    "h": 220.661,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43709,
    "c": 0.14088,
    "h": 262.8
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#254C9E
secondary
#C0A15F
accent
#B143E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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