#254C8A#254C8A

#254C8A is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.112 H 259.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#254C8A
RGBrgb(37, 76, 138)
HSLhsl(217, 58%, 34%)
HSVhsv(217, 73%, 54%)
CMYKcmyk(73.2%, 44.9%, 0%, 45.9%)
CIE-LABlab(32.69, 8.63, -38.60)
CIE-LCHlch(32.69, 39.55, 282.60°)
OKLaboklab(42.24% -0.0208 -0.1104)
OKLCHoklch(42.24% 0.112 259.3)
XYZxyz(7.9332, 7.3963, 25.0494)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C8A #8A6325
analogous
#257F8A #254C8A #31258A
triadic
#254C8A #8A254C #4C8A25
tetradic
#254C8A #8A257F #8A6325 #258A31
square
#254C8A #8A257F #8A6325 #258A31
split-complementary
#254C8A #8A3125 #7F8A25
monochromatic
#0B1729 #18315A #254C8A #3267BA #5787D2

Accessibility & contrast

On white

8.47
#254C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#254C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C8A
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C8A#FFFFFF#000000##FFFFFF
##254C8A1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#1B4989
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254c8a;
/* rgb */ color: rgb(37, 76, 138);
/* oklch */ color: oklch(42.2% 0.112 259.3);
Tailwind
colors: {
  custom: {
    50: '#6d7dac',
    500: '#254c8a',
    950: '#000000',
  },
}
SCSS
$custom: #254c8a;
$custom-light: #6d7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#254c8a",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 216.832,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.11234,
    "h": 259.3
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#254C8A
secondary
#B79154
accent
#A547E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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