#254DA8#254DA8

#254DA8 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.154 H 263.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#254DA8
RGBrgb(37, 77, 168)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 66%)
CMYKcmyk(78%, 54.2%, 0%, 34.1%)
CIE-LABlab(35.06, 19.70, -52.94)
CIE-LCHlch(35.06, 56.49, 290.41°)
OKLaboklab(44.71% -0.0173 -0.1526)
OKLCHoklch(44.71% 0.154 263.5)
XYZxyz(10.4822, 8.5270, 38.1316)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DA8 #A88025
analogous
#258FA8 #254DA8 #3E25A8
triadic
#254DA8 #A8254D #4DA825
tetradic
#254DA8 #A8258F #A88025 #25A83E
square
#254DA8 #A8258F #A88025 #25A83E
split-complementary
#254DA8 #A83E25 #8FA825
monochromatic
#0F1F44 #1A3676 #254DA8 #3767D3 #698DDE

Accessibility & contrast

On white

7.76
#254DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#254DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DA8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DA8#FFFFFF#000000##FFFFFF
##254DA81.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0259AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254da8;
/* rgb */ color: rgb(37, 77, 168);
/* oklch */ color: oklch(44.7% 0.154 263.5);
Tailwind
colors: {
  custom: {
    50: '#747ec3',
    500: '#254da8',
    950: '#000000',
  },
}
SCSS
$custom: #254da8;
$custom-light: #747ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#254da8",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 221.679,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4471,
    "c": 0.15357,
    "h": 263.5
  },
  "luminance": 0.08528
}

Semantic roles & 50–950 ramp

primary
#254DA8
secondary
#C4A765
accent
#B441E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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