#254D99#254D99

#254D99 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.5% C 0.133 H 261.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#254D99
RGBrgb(37, 77, 153)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(75.8%, 49.7%, 0%, 40%)
CIE-LABlab(33.98, 13.83, -45.67)
CIE-LCHlch(33.98, 47.72, 286.85°)
OKLaboklab(43.55% -0.0191 -0.1312)
OKLCHoklch(43.55% 0.133 261.7)
XYZxyz(9.1645, 8.0000, 31.1920)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D99 #997125
analogous
#258799 #254D99 #372599
triadic
#254D99 #99254D #4D9925
tetradic
#254D99 #992587 #997125 #259937
square
#254D99 #992587 #997125 #259937
split-complementary
#254D99 #993725 #879925
monochromatic
#0D1B36 #193468 #254D99 #3166CA #6089D9

Accessibility & contrast

On white

8.08
#254D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#254D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D99
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D99#FFFFFF#000000##FFFFFF
##254D991.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22569C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254d99;
/* rgb */ color: rgb(37, 77, 153);
/* oklch */ color: oklch(43.5% 0.133 261.7);
Tailwind
colors: {
  custom: {
    50: '#707eb8',
    500: '#254d99',
    950: '#000000',
  },
}
SCSS
$custom: #254d99;
$custom-light: #707eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254d99",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 153
  },
  "hsl": {
    "h": 219.31,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43549,
    "c": 0.13255,
    "h": 261.7
  },
  "luminance": 0.08001
}

Semantic roles & 50–950 ramp

primary
#254D99
secondary
#BE9C5C
accent
#AD44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254D99

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

Preview Lab → · Contrast checker → · Palette generator →

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