#254C84#254C84

#254C84 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.104 H 257.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#254C84
RGBrgb(37, 76, 132)
HSLhsl(215, 56%, 33%)
HSVhsv(215, 72%, 52%)
CMYKcmyk(72%, 42.4%, 0%, 48.2%)
CIE-LABlab(32.32, 6.29, -35.50)
CIE-LCHlch(32.32, 36.05, 280.05°)
OKLaboklab(41.83% -0.0221 -0.1013)
OKLCHoklch(41.83% 0.104 257.7)
XYZxyz(7.5107, 7.2274, 22.8245)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C84 #845D25
analogous
#257B84 #254C84 #2D2584
triadic
#254C84 #84254C #4C8425
tetradic
#254C84 #84257B #845D25 #25842D
square
#254C84 #84257B #845D25 #25842D
split-complementary
#254C84 #842D25 #7B8425
monochromatic
#0A1524 #183054 #254C84 #3268B4 #5487CF

Accessibility & contrast

On white

8.59
#254C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254C84
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C84#FFFFFF#000000##FFFFFF
##254C841.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325186
Deuteranopia (green-blind)
#224883
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254c84;
/* rgb */ color: rgb(37, 76, 132);
/* oklch */ color: oklch(41.8% 0.104 257.7);
Tailwind
colors: {
  custom: {
    50: '#6c7da8',
    500: '#254c84',
    950: '#000000',
  },
}
SCSS
$custom: #254c84;
$custom-light: #6c7da8;
$custom-dark: #000000;
JSON
{
  "hex": "#254c84",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 132
  },
  "hsl": {
    "h": 215.368,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.10368,
    "h": 257.7
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#254C84
secondary
#B38B51
accent
#A148E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254C84

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

Preview Lab → · Contrast checker → · Palette generator →

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