#254D89#254D89

#254D89 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.110 H 258.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#254D89
RGBrgb(37, 77, 137)
HSLhsl(216, 57%, 34%)
HSVhsv(216, 73%, 54%)
CMYKcmyk(73%, 43.8%, 0%, 46.3%)
CIE-LABlab(32.93, 7.57, -37.60)
CIE-LCHlch(32.93, 38.35, 281.38°)
OKLaboklab(42.4% -0.022 -0.1074)
OKLCHoklch(42.4% 0.11 258.4)
XYZxyz(7.9305, 7.5064, 24.6930)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D89 #896125
analogous
#257F89 #254D89 #2F2589
triadic
#254D89 #89254D #4D8925
tetradic
#254D89 #89257F #896125 #25892F
square
#254D89 #89257F #896125 #25892F
split-complementary
#254D89 #892F25 #7F8925
monochromatic
#0B1729 #183259 #254D89 #3268B9 #5788D2

Accessibility & contrast

On white

8.40
#254D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#254D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D89
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D89#FFFFFF#000000##FFFFFF
##254D891.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30528B
Deuteranopia (green-blind)
#1F4988
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254d89;
/* rgb */ color: rgb(37, 77, 137);
/* oklch */ color: oklch(42.4% 0.110 258.4);
Tailwind
colors: {
  custom: {
    50: '#6d7eac',
    500: '#254d89',
    950: '#000000',
  },
}
SCSS
$custom: #254d89;
$custom-light: #6d7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#254d89",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 137
  },
  "hsl": {
    "h": 216,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.10967,
    "h": 258.4
  },
  "luminance": 0.07507
}

Semantic roles & 50–950 ramp

primary
#254D89
secondary
#B68F54
accent
#A347E1
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254D89

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

Preview Lab → · Contrast checker → · Palette generator →

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