#254398#254398

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

Color values

HEX#254398
RGBrgb(37, 67, 152)
HSLhsl(224, 61%, 37%)
HSVhsv(224, 76%, 60%)
CMYKcmyk(75.7%, 55.9%, 0%, 40.4%)
CIE-LABlab(31.05, 20.22, -49.80)
CIE-LCHlch(31.05, 53.75, 292.10°)
OKLaboklab(41.3% -0.0109 -0.1435)
OKLCHoklch(41.3% 0.144 265.7)
XYZxyz(8.4356, 6.6737, 30.5433)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254398 #987A25
analogous
#257D98 #254398 #412598
triadic
#254398 #982543 #439825
tetradic
#254398 #98257D #987A25 #259841
square
#254398 #98257D #987A25 #259841
split-complementary
#254398 #984125 #7D9825
monochromatic
#0D1836 #192D67 #254398 #3159C9 #5F7FD8

Accessibility & contrast

On white

8.99
#254398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254398
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254398#FFFFFF#000000##FFFFFF
##2543981.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254398;
/* rgb */ color: rgb(37, 67, 152);
/* oklch */ color: oklch(41.3% 0.144 265.7);
Tailwind
colors: {
  custom: {
    50: '#7176b7',
    500: '#254398',
    950: '#000000',
  },
}
SCSS
$custom: #254398;
$custom-light: #7176b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254398",
  "rgb": {
    "r": 37,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 224.348,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41299,
    "c": 0.14392,
    "h": 265.7
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#254398
secondary
#BDA45C
accent
#BA44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254398

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

Preview Lab → · Contrast checker → · Palette generator →

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