#254E99#254E99

#254E99 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.131 H 261.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#254E99
RGBrgb(37, 78, 153)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(75.8%, 49%, 0%, 40%)
CIE-LABlab(34.27, 13.16, -45.20)
CIE-LCHlch(34.27, 47.07, 286.24°)
OKLaboklab(43.77% -0.02 -0.1298)
OKLCHoklch(43.77% 0.131 261.3)
XYZxyz(9.2350, 8.1410, 31.2155)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E99 #997025
analogous
#258899 #254E99 #362599
triadic
#254E99 #99254E #4E9925
tetradic
#254E99 #992588 #997025 #259936
square
#254E99 #992588 #997025 #259936
split-complementary
#254E99 #993625 #889925
monochromatic
#0D1C36 #193568 #254E99 #3167CA #608BD9

Accessibility & contrast

On white

7.99
#254E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254E99
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E99#FFFFFF#000000##FFFFFF
##254E991.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569C
Deuteranopia (green-blind)
#004C97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254e99;
/* rgb */ color: rgb(37, 78, 153);
/* oklch */ color: oklch(43.8% 0.131 261.3);
Tailwind
colors: {
  custom: {
    50: '#707fb7',
    500: '#254e99',
    950: '#000000',
  },
}
SCSS
$custom: #254e99;
$custom-light: #707fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254e99",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 218.793,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43773,
    "c": 0.1313,
    "h": 261.3
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#254E99
secondary
#BE9B5C
accent
#AB44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #254E99

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

Preview Lab → · Contrast checker → · Palette generator →

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