#254391#254391

#254391 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.7% C 0.134 H 265.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#254391
RGBrgb(37, 67, 145)
HSLhsl(223, 59%, 36%)
HSVhsv(223, 74%, 57%)
CMYKcmyk(74.5%, 53.8%, 0%, 43.1%)
CIE-LABlab(30.52, 17.48, -46.38)
CIE-LCHlch(30.52, 49.57, 290.65°)
OKLaboklab(40.73% -0.0115 -0.1335)
OKLCHoklch(40.73% 0.134 265.1)
XYZxyz(7.8791, 6.4511, 27.6125)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254391 #917325
analogous
#257991 #254391 #3D2591
triadic
#254391 #912543 #439125
tetradic
#254391 #912579 #917325 #25913D
square
#254391 #912579 #917325 #25913D
split-complementary
#254391 #913D25 #799125
monochromatic
#0C162F #192C60 #254391 #315AC2 #5B7DD5

Accessibility & contrast

On white

9.17
#254391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#254391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254391
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254391#FFFFFF#000000##FFFFFF
##2543911.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4D94
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254391;
/* rgb */ color: rgb(37, 67, 145);
/* oklch */ color: oklch(40.7% 0.134 265.1);
Tailwind
colors: {
  custom: {
    50: '#6f76b2',
    500: '#254391',
    950: '#000000',
  },
}
SCSS
$custom: #254391;
$custom-light: #6f76b2;
$custom-dark: #000000;
JSON
{
  "hex": "#254391",
  "rgb": {
    "r": 37,
    "g": 67,
    "b": 145
  },
  "hsl": {
    "h": 223.333,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40731,
    "c": 0.13395,
    "h": 265.1
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#254391
secondary
#BA9F58
accent
#B745E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #254391

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

Preview Lab → · Contrast checker → · Palette generator →

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