#254D87#254D87

#254D87 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.107 H 257.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#254D87
RGBrgb(37, 77, 135)
HSLhsl(216, 57%, 34%)
HSVhsv(216, 73%, 53%)
CMYKcmyk(72.6%, 43%, 0%, 47.1%)
CIE-LABlab(32.81, 6.79, -36.57)
CIE-LCHlch(32.81, 37.19, 280.52°)
OKLaboklab(42.27% -0.0224 -0.1044)
OKLCHoklch(42.27% 0.107 257.9)
XYZxyz(7.7884, 7.4495, 23.9444)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D87 #875F25
analogous
#257E87 #254D87 #2E2587
triadic
#254D87 #87254D #4D8725
tetradic
#254D87 #87257E #875F25 #25872E
square
#254D87 #87257E #875F25 #25872E
split-complementary
#254D87 #872E25 #7E8725
monochromatic
#0B1627 #183257 #254D87 #3268B7 #5688D1

Accessibility & contrast

On white

8.43
#254D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#254D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D87
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D87#FFFFFF#000000##FFFFFF
##254D871.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315289
Deuteranopia (green-blind)
#214986
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254d87;
/* rgb */ color: rgb(37, 77, 135);
/* oklch */ color: oklch(42.3% 0.107 257.9);
Tailwind
colors: {
  custom: {
    50: '#6c7eaa',
    500: '#254d87',
    950: '#000000',
  },
}
SCSS
$custom: #254d87;
$custom-light: #6c7eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#254d87",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 215.51,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42267,
    "c": 0.10679,
    "h": 257.9
  },
  "luminance": 0.0745
}

Semantic roles & 50–950 ramp

primary
#254D87
secondary
#B58D53
accent
#A248E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254D87

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

Preview Lab → · Contrast checker → · Palette generator →

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