#254D9F#254D9F

#254D9F is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.141 H 262.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#254D9F
RGBrgb(37, 77, 159)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 77%, 62%)
CMYKcmyk(76.7%, 51.6%, 0%, 37.6%)
CIE-LABlab(34.40, 16.19, -48.61)
CIE-LCHlch(34.40, 51.23, 288.42°)
OKLaboklab(44% -0.0183 -0.1398)
OKLCHoklch(44% 0.141 262.6)
XYZxyz(9.6726, 8.2032, 33.8678)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D9F #9F7725
analogous
#258A9F #254D9F #3A259F
triadic
#254D9F #9F254D #4D9F25
tetradic
#254D9F #9F258A #9F7725 #259F3A
square
#254D9F #9F258A #9F7725 #259F3A
split-complementary
#254D9F #9F3A25 #8A9F25
monochromatic
#0E1D3C #19356D #254D9F #3266CF #648BDB

Accessibility & contrast

On white

7.95
#254D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D9F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D9F#FFFFFF#000000##FFFFFF
##254D9F1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1957A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254d9f;
/* rgb */ color: rgb(37, 77, 159);
/* oklch */ color: oklch(44.0% 0.141 262.6);
Tailwind
colors: {
  custom: {
    50: '#727ebc',
    500: '#254d9f',
    950: '#000000',
  },
}
SCSS
$custom: #254d9f;
$custom-light: #727ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#254d9f",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 220.328,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44004,
    "c": 0.14103,
    "h": 262.6
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#254D9F
secondary
#C0A15F
accent
#B042E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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