#254B89#254B89

#254B89 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.112 H 259.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#254B89
RGBrgb(37, 75, 137)
HSLhsl(217, 57%, 34%)
HSVhsv(217, 73%, 54%)
CMYKcmyk(73%, 45.3%, 0%, 46.3%)
CIE-LABlab(32.33, 8.91, -38.57)
CIE-LCHlch(32.33, 39.58, 283.01°)
OKLaboklab(41.94% -0.02 -0.1103)
OKLCHoklch(41.94% 0.112 259.7)
XYZxyz(7.7928, 7.2308, 24.6470)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B89 #896325
analogous
#257D89 #254B89 #312589
triadic
#254B89 #89254B #4B8925
tetradic
#254B89 #89257D #896325 #258931
square
#254B89 #89257D #896325 #258931
split-complementary
#254B89 #893125 #7D8925
monochromatic
#0B1629 #183159 #254B89 #3265B9 #5785D2

Accessibility & contrast

On white

8.58
#254B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#254B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B89
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B89#FFFFFF#000000##FFFFFF
##254B891.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C518B
Deuteranopia (green-blind)
#1A4888
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254b89;
/* rgb */ color: rgb(37, 75, 137);
/* oklch */ color: oklch(41.9% 0.112 259.7);
Tailwind
colors: {
  custom: {
    50: '#6d7cac',
    500: '#254b89',
    950: '#000000',
  },
}
SCSS
$custom: #254b89;
$custom-light: #6d7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#254b89",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 137
  },
  "hsl": {
    "h": 217.2,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.11213,
    "h": 259.7
  },
  "luminance": 0.07232
}

Semantic roles & 50–950 ramp

primary
#254B89
secondary
#B69154
accent
#A647E1
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254B89

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

Preview Lab → · Contrast checker → · Palette generator →

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