#254E9D#254E9D

#254E9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.137 H 261.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#254E9D
RGBrgb(37, 78, 157)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 76%, 62%)
CMYKcmyk(76.4%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.55, 14.73, -47.17)
CIE-LCHlch(34.55, 49.41, 287.34°)
OKLaboklab(44.07% -0.0194 -0.1356)
OKLCHoklch(44.07% 0.137 261.9)
XYZxyz(9.5710, 8.2753, 32.9846)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E9D #9D7425
analogous
#258A9D #254E9D #38259D
triadic
#254E9D #9D254E #4E9D25
tetradic
#254E9D #9D258A #9D7425 #259D38
square
#254E9D #9D258A #9D7425 #259D38
split-complementary
#254E9D #9D3825 #8A9D25
monochromatic
#0E1D3A #19356B #254E9D #3167CE #628BDA

Accessibility & contrast

On white

7.91
#254E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#254E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E9D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E9D#FFFFFF#000000##FFFFFF
##254E9D1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F57A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254e9d;
/* rgb */ color: rgb(37, 78, 157);
/* oklch */ color: oklch(44.1% 0.137 261.9);
Tailwind
colors: {
  custom: {
    50: '#717fba',
    500: '#254e9d',
    950: '#000000',
  },
}
SCSS
$custom: #254e9d;
$custom-light: #717fba;
$custom-dark: #000000;
JSON
{
  "hex": "#254e9d",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 219.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44072,
    "c": 0.13695,
    "h": 261.9
  },
  "luminance": 0.08276
}

Semantic roles & 50–950 ramp

primary
#254E9D
secondary
#BF9E5E
accent
#AE43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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