#254D86#254D86

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

Color values

HEX#254D86
RGBrgb(37, 77, 134)
HSLhsl(215, 57%, 34%)
HSVhsv(215, 72%, 53%)
CMYKcmyk(72.4%, 42.5%, 0%, 47.5%)
CIE-LABlab(32.75, 6.40, -36.05)
CIE-LCHlch(32.75, 36.61, 280.07°)
OKLaboklab(42.2% -0.0226 -0.1029)
OKLCHoklch(42.2% 0.105 257.6)
XYZxyz(7.7183, 7.4215, 23.5754)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D86 #865E25
analogous
#257D86 #254D86 #2D2586
triadic
#254D86 #86254D #4D8625
tetradic
#254D86 #86257D #865E25 #25862D
square
#254D86 #86257D #865E25 #25862D
split-complementary
#254D86 #862D25 #7D8625
monochromatic
#0B1626 #183156 #254D86 #3269B6 #5588D0

Accessibility & contrast

On white

8.45
#254D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254D86
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D86#FFFFFF#000000##FFFFFF
##254D861.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254d86;
/* rgb */ color: rgb(37, 77, 134);
/* oklch */ color: oklch(42.2% 0.105 257.6);
Tailwind
colors: {
  custom: {
    50: '#6c7ea9',
    500: '#254d86',
    950: '#000000',
  },
}
SCSS
$custom: #254d86;
$custom-light: #6c7ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#254d86",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 134
  },
  "hsl": {
    "h": 215.258,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.422,
    "c": 0.10535,
    "h": 257.6
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#254D86
secondary
#B48C52
accent
#A148E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254D86

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

Preview Lab → · Contrast checker → · Palette generator →

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