#254C87#254C87

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

Color values

HEX#254C87
RGBrgb(37, 76, 135)
HSLhsl(216, 57%, 34%)
HSVhsv(216, 73%, 53%)
CMYKcmyk(72.6%, 43.7%, 0%, 47.1%)
CIE-LABlab(32.50, 7.46, -37.05)
CIE-LCHlch(32.50, 37.80, 281.38°)
OKLaboklab(42.03% -0.0214 -0.1059)
OKLCHoklch(42.03% 0.108 258.6)
XYZxyz(7.7190, 7.3107, 23.9213)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C87 #876025
analogous
#257D87 #254C87 #2F2587
triadic
#254C87 #87254C #4C8725
tetradic
#254C87 #87257D #876025 #25872F
square
#254C87 #87257D #876025 #25872F
split-complementary
#254C87 #872F25 #7D8725
monochromatic
#0B1627 #183157 #254C87 #3267B7 #5687D1

Accessibility & contrast

On white

8.53
#254C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254C87
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C87#FFFFFF#000000##FFFFFF
##254C871.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305189
Deuteranopia (green-blind)
#1F4886
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254c87;
/* rgb */ color: rgb(37, 76, 135);
/* oklch */ color: oklch(42.0% 0.108 258.6);
Tailwind
colors: {
  custom: {
    50: '#6c7daa',
    500: '#254c87',
    950: '#000000',
  },
}
SCSS
$custom: #254c87;
$custom-light: #6c7daa;
$custom-dark: #000000;
JSON
{
  "hex": "#254c87",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 135
  },
  "hsl": {
    "h": 216.122,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.10801,
    "h": 258.6
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254C87

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

Preview Lab → · Contrast checker → · Palette generator →

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