#254D98#254D98

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

Color values

HEX#254D98
RGBrgb(37, 77, 152)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(75.7%, 49.3%, 0%, 40.4%)
CIE-LABlab(33.91, 13.44, -45.17)
CIE-LCHlch(33.91, 47.13, 286.57°)
OKLaboklab(43.48% -0.0192 -0.1297)
OKLCHoklch(43.48% 0.131 261.6)
XYZxyz(9.0823, 7.9671, 30.7588)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D98 #987025
analogous
#258798 #254D98 #362598
triadic
#254D98 #98254D #4D9825
tetradic
#254D98 #982587 #987025 #259836
square
#254D98 #982587 #987025 #259836
split-complementary
#254D98 #983625 #879825
monochromatic
#0D1B36 #193467 #254D98 #3166C9 #5F89D8

Accessibility & contrast

On white

8.10
#254D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#254D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D98
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D98#FFFFFF#000000##FFFFFF
##254D981.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254d98;
/* rgb */ color: rgb(37, 77, 152);
/* oklch */ color: oklch(43.5% 0.131 261.6);
Tailwind
colors: {
  custom: {
    50: '#707eb7',
    500: '#254d98',
    950: '#000000',
  },
}
SCSS
$custom: #254d98;
$custom-light: #707eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254d98",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 219.13,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43475,
    "c": 0.13114,
    "h": 261.6
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#254D98
secondary
#BD9B5C
accent
#AC44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254D98

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

Preview Lab → · Contrast checker → · Palette generator →

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