#254C86#254C86

#254C86 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.107 H 258.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#254C86
RGBrgb(37, 76, 134)
HSLhsl(216, 57%, 34%)
HSVhsv(216, 72%, 53%)
CMYKcmyk(72.4%, 43.3%, 0%, 47.5%)
CIE-LABlab(32.44, 7.07, -36.54)
CIE-LCHlch(32.44, 37.21, 280.95°)
OKLaboklab(41.96% -0.0216 -0.1043)
OKLCHoklch(41.96% 0.107 258.3)
XYZxyz(7.6489, 7.2826, 23.5522)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C86 #865F25
analogous
#257C86 #254C86 #2E2586
triadic
#254C86 #86254C #4C8625
tetradic
#254C86 #86257C #865F25 #25862E
square
#254C86 #86257C #865F25 #25862E
split-complementary
#254C86 #862E25 #7C8625
monochromatic
#0B1626 #183156 #254C86 #3267B6 #5587D0

Accessibility & contrast

On white

8.55
#254C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#254C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C86
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C86#FFFFFF#000000##FFFFFF
##254C861.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305188
Deuteranopia (green-blind)
#204885
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254c86;
/* rgb */ color: rgb(37, 76, 134);
/* oklch */ color: oklch(42.0% 0.107 258.3);
Tailwind
colors: {
  custom: {
    50: '#6c7da9',
    500: '#254c86',
    950: '#000000',
  },
}
SCSS
$custom: #254c86;
$custom-light: #6c7da9;
$custom-dark: #000000;
JSON
{
  "hex": "#254c86",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 134
  },
  "hsl": {
    "h": 215.876,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.10656,
    "h": 258.3
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#254C86
secondary
#B48D52
accent
#A348E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254C86

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

Preview Lab → · Contrast checker → · Palette generator →

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