#254399#254399

#254399 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.145 H 265.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#254399
RGBrgb(37, 67, 153)
HSLhsl(224, 61%, 37%)
HSVhsv(224, 76%, 60%)
CMYKcmyk(75.8%, 56.2%, 0%, 40%)
CIE-LABlab(31.13, 20.61, -50.28)
CIE-LCHlch(31.13, 54.34, 292.29°)
OKLaboklab(41.38% -0.0108 -0.1449)
OKLCHoklch(41.38% 0.145 265.7)
XYZxyz(8.5179, 6.7066, 30.9764)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254399 #997B25
analogous
#257D99 #254399 #412599
triadic
#254399 #992543 #439925
tetradic
#254399 #99257D #997B25 #259941
square
#254399 #99257D #997B25 #259941
split-complementary
#254399 #994125 #7D9925
monochromatic
#0D1836 #192D68 #254399 #3159CA #607FD9

Accessibility & contrast

On white

8.97
#254399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#254399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254399
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254399#FFFFFF#000000##FFFFFF
##2543991.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254399;
/* rgb */ color: rgb(37, 67, 153);
/* oklch */ color: oklch(41.4% 0.145 265.7);
Tailwind
colors: {
  custom: {
    50: '#7176b8',
    500: '#254399',
    950: '#000000',
  },
}
SCSS
$custom: #254399;
$custom-light: #7176b8;
$custom-dark: #000000;
JSON
{
  "hex": "#254399",
  "rgb": {
    "r": 37,
    "g": 67,
    "b": 153
  },
  "hsl": {
    "h": 224.483,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41381,
    "c": 0.14533,
    "h": 265.7
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#254399
secondary
#BEA45C
accent
#BB44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254399

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

Preview Lab → · Contrast checker → · Palette generator →

#254399 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva