#254D95#254D95

#254D95 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.127 H 261.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#254D95
RGBrgb(37, 77, 149)
HSLhsl(219, 60%, 36%)
HSVhsv(219, 75%, 58%)
CMYKcmyk(75.2%, 48.3%, 0%, 41.6%)
CIE-LABlab(33.71, 12.27, -43.68)
CIE-LCHlch(33.71, 45.37, 285.69°)
OKLaboklab(43.25% -0.0197 -0.1253)
OKLCHoklch(43.25% 0.127 261.1)
XYZxyz(8.8397, 7.8700, 29.4811)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D95 #956D25
analogous
#258595 #254D95 #352595
triadic
#254D95 #95254D #4D9525
tetradic
#254D95 #952585 #956D25 #259535
square
#254D95 #952585 #956D25 #259535
split-complementary
#254D95 #953525 #859525
monochromatic
#0D1A33 #193464 #254D95 #3166C6 #5E89D7

Accessibility & contrast

On white

8.16
#254D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D95
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D95#FFFFFF#000000##FFFFFF
##254D951.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265598
Deuteranopia (green-blind)
#074A94
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254d95;
/* rgb */ color: rgb(37, 77, 149);
/* oklch */ color: oklch(43.3% 0.127 261.1);
Tailwind
colors: {
  custom: {
    50: '#6f7eb5',
    500: '#254d95',
    950: '#000000',
  },
}
SCSS
$custom: #254d95;
$custom-light: #6f7eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#254d95",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 149
  },
  "hsl": {
    "h": 218.571,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43254,
    "c": 0.12687,
    "h": 261.1
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#254D95
secondary
#BC995A
accent
#AB44E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254D95

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

Preview Lab → · Contrast checker → · Palette generator →

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