#254C96#254C96

#254C96 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.1% C 0.130 H 261.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#254C96
RGBrgb(37, 76, 150)
HSLhsl(219, 60%, 37%)
HSVhsv(219, 75%, 59%)
CMYKcmyk(75.3%, 49.3%, 0%, 41.2%)
CIE-LABlab(33.48, 13.33, -44.65)
CIE-LCHlch(33.48, 46.60, 286.62°)
OKLaboklab(43.1% -0.0187 -0.1282)
OKLCHoklch(43.1% 0.13 261.7)
XYZxyz(8.8504, 7.7632, 29.8803)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C96 #966F25
analogous
#258596 #254C96 #372596
triadic
#254C96 #96254C #4C9625
tetradic
#254C96 #962585 #966F25 #259637
square
#254C96 #962585 #966F25 #259637
split-complementary
#254C96 #963725 #859625
monochromatic
#0D1A34 #193365 #254C96 #3165C7 #5E88D7

Accessibility & contrast

On white

8.23
#254C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C96
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C96#FFFFFF#000000##FFFFFF
##254C961.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235499
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254c96;
/* rgb */ color: rgb(37, 76, 150);
/* oklch */ color: oklch(43.1% 0.130 261.7);
Tailwind
colors: {
  custom: {
    50: '#707db5',
    500: '#254c96',
    950: '#000000',
  },
}
SCSS
$custom: #254c96;
$custom-light: #707db5;
$custom-dark: #000000;
JSON
{
  "hex": "#254c96",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 150
  },
  "hsl": {
    "h": 219.292,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43102,
    "c": 0.12955,
    "h": 261.7
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#254C96
secondary
#BC9B5B
accent
#AD44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254C96

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

Preview Lab → · Contrast checker → · Palette generator →

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