#254D9E#254D9E

#254D9E is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.140 H 262.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#254D9E
RGBrgb(37, 77, 158)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 77%, 62%)
CMYKcmyk(76.6%, 51.3%, 0%, 38%)
CIE-LABlab(34.33, 15.79, -48.12)
CIE-LCHlch(34.33, 50.65, 288.17°)
OKLaboklab(43.93% -0.0184 -0.1384)
OKLCHoklch(43.93% 0.14 262.4)
XYZxyz(9.5862, 8.1686, 33.4126)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D9E #9E7625
analogous
#25899E #254D9E #39259E
triadic
#254D9E #9E254D #4D9E25
tetradic
#254D9E #9E2589 #9E7625 #259E39
square
#254D9E #9E2589 #9E7625 #259E39
split-complementary
#254D9E #9E3925 #899E25
monochromatic
#0E1D3B #19356C #254D9E #3165CF #638ADA

Accessibility & contrast

On white

7.97
#254D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D9E
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D9E#FFFFFF#000000##FFFFFF
##254D9E1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254d9e;
/* rgb */ color: rgb(37, 77, 158);
/* oklch */ color: oklch(43.9% 0.140 262.4);
Tailwind
colors: {
  custom: {
    50: '#727ebb',
    500: '#254d9e',
    950: '#000000',
  },
}
SCSS
$custom: #254d9e;
$custom-light: #727ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#254d9e",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 158
  },
  "hsl": {
    "h": 220.165,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43927,
    "c": 0.13962,
    "h": 262.4
  },
  "luminance": 0.0817
}

Semantic roles & 50–950 ramp

primary
#254D9E
secondary
#C0A05F
accent
#AF43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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