#254397#254397

#254397 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.143 H 265.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#254397
RGBrgb(37, 67, 151)
HSLhsl(224, 61%, 37%)
HSVhsv(224, 75%, 59%)
CMYKcmyk(75.5%, 55.6%, 0%, 40.8%)
CIE-LABlab(30.98, 19.83, -49.31)
CIE-LCHlch(30.98, 53.15, 291.90°)
OKLaboklab(41.22% -0.011 -0.1421)
OKLCHoklch(41.22% 0.143 265.6)
XYZxyz(8.3541, 6.6411, 30.1137)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254397 #977925
analogous
#257C97 #254397 #402597
triadic
#254397 #972543 #439725
tetradic
#254397 #97257C #977925 #259740
square
#254397 #97257C #977925 #259740
split-complementary
#254397 #974025 #7C9725
monochromatic
#0D1735 #192D66 #254397 #3159C8 #5F7FD8

Accessibility & contrast

On white

9.02
#254397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#254397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254397
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254397#FFFFFF#000000##FFFFFF
##2543971.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254397;
/* rgb */ color: rgb(37, 67, 151);
/* oklch */ color: oklch(41.2% 0.143 265.6);
Tailwind
colors: {
  custom: {
    50: '#7076b6',
    500: '#254397',
    950: '#000000',
  },
}
SCSS
$custom: #254397;
$custom-light: #7076b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254397",
  "rgb": {
    "r": 37,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 224.211,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41217,
    "c": 0.14251,
    "h": 265.6
  },
  "luminance": 0.06642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254397

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

Preview Lab → · Contrast checker → · Palette generator →

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