#254B9C#254B9C

#254B9C is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.139 H 263.0°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#254B9C
RGBrgb(37, 75, 156)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 76%, 61%)
CMYKcmyk(76.3%, 51.9%, 0%, 38.8%)
CIE-LABlab(33.62, 16.36, -48.07)
CIE-LCHlch(33.62, 50.78, 288.79°)
OKLaboklab(43.34% -0.017 -0.1383)
OKLCHoklch(43.34% 0.139 263)
XYZxyz(9.2776, 7.8247, 32.4674)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B9C #9C7625
analogous
#25879C #254B9C #3A259C
triadic
#254B9C #9C254B #4B9C25
tetradic
#254B9C #9C2587 #9C7625 #259C3A
square
#254B9C #9C2587 #9C7625 #259C3A
split-complementary
#254B9C #9C3A25 #879C25
monochromatic
#0E1B39 #19336B #254B9C #3163CD #6288DA

Accessibility & contrast

On white

8.19
#254B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B9C
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B9C#FFFFFF#000000##FFFFFF
##254B9C1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17559F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254b9c;
/* rgb */ color: rgb(37, 75, 156);
/* oklch */ color: oklch(43.3% 0.139 263.0);
Tailwind
colors: {
  custom: {
    50: '#717cba',
    500: '#254b9c',
    950: '#000000',
  },
}
SCSS
$custom: #254b9c;
$custom-light: #717cba;
$custom-dark: #000000;
JSON
{
  "hex": "#254b9c",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 156
  },
  "hsl": {
    "h": 220.84,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43336,
    "c": 0.13933,
    "h": 263
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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