#254D8A#254D8A

#254D8A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.111 H 258.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#254D8A
RGBrgb(37, 77, 138)
HSLhsl(216, 58%, 34%)
HSVhsv(216, 73%, 54%)
CMYKcmyk(73.2%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.00, 7.96, -38.11)
CIE-LCHlch(33.00, 38.93, 281.80°)
OKLaboklab(42.47% -0.0218 -0.1089)
OKLCHoklch(42.47% 0.111 258.7)
XYZxyz(8.0026, 7.5352, 25.0725)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D8A #8A6225
analogous
#25808A #254D8A #30258A
triadic
#254D8A #8A254D #4D8A25
tetradic
#254D8A #8A2580 #8A6225 #258A30
square
#254D8A #8A2580 #8A6225 #258A30
split-complementary
#254D8A #8A3025 #808A25
monochromatic
#0B1729 #18325A #254D8A #3268BA #5788D2

Accessibility & contrast

On white

8.38
#254D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D8A
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D8A#FFFFFF#000000##FFFFFF
##254D8A1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538C
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254d8a;
/* rgb */ color: rgb(37, 77, 138);
/* oklch */ color: oklch(42.5% 0.111 258.7);
Tailwind
colors: {
  custom: {
    50: '#6d7eac',
    500: '#254d8a',
    950: '#000000',
  },
}
SCSS
$custom: #254d8a;
$custom-light: #6d7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#254d8a",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 216.238,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.1111,
    "h": 258.7
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#254D8A
secondary
#B79054
accent
#A447E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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