#254E9A#254E9A

#254E9A is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.133 H 261.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#254E9A
RGBrgb(37, 78, 154)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(76%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.34, 13.55, -45.69)
CIE-LCHlch(34.34, 47.66, 286.52°)
OKLaboklab(43.85% -0.0198 -0.1312)
OKLCHoklch(43.85% 0.133 261.4)
XYZxyz(9.3180, 8.1741, 31.6523)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E9A #9A7125
analogous
#25899A #254E9A #36259A
triadic
#254E9A #9A254E #4E9A25
tetradic
#254E9A #9A2589 #9A7125 #259A36
square
#254E9A #9A2589 #9A7125 #259A36
split-complementary
#254E9A #9A3625 #899A25
monochromatic
#0D1C37 #193569 #254E9A #3167CB #608BD9

Accessibility & contrast

On white

7.97
#254E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E9A
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E9A#FFFFFF#000000##FFFFFF
##254E9A1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23569D
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254e9a;
/* rgb */ color: rgb(37, 78, 154);
/* oklch */ color: oklch(43.8% 0.133 261.4);
Tailwind
colors: {
  custom: {
    50: '#717fb8',
    500: '#254e9a',
    950: '#000000',
  },
}
SCSS
$custom: #254e9a;
$custom-light: #717fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254e9a",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 218.974,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43847,
    "c": 0.13272,
    "h": 261.4
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#254E9A
secondary
#BE9C5D
accent
#AC43E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #254E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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