#254491#254491

#254491 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.9% C 0.133 H 264.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#254491
RGBrgb(37, 68, 145)
HSLhsl(223, 59%, 36%)
HSVhsv(223, 74%, 57%)
CMYKcmyk(74.5%, 53.1%, 0%, 43.1%)
CIE-LABlab(30.81, 16.80, -45.92)
CIE-LCHlch(30.81, 48.89, 290.10°)
OKLaboklab(40.95% -0.0123 -0.1321)
OKLCHoklch(40.95% 0.133 264.7)
XYZxyz(7.9391, 6.5710, 27.6325)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254491 #917225
analogous
#257A91 #254491 #3C2591
triadic
#254491 #912544 #449125
tetradic
#254491 #91257A #917225 #25913C
square
#254491 #91257A #917225 #25913C
split-complementary
#254491 #913C25 #7A9125
monochromatic
#0C162F #192D60 #254491 #315BC2 #5B7ED5

Accessibility & contrast

On white

9.07
#254491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#254491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254491
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254491#FFFFFF#000000##FFFFFF
##2544911.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114E94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254491;
/* rgb */ color: rgb(37, 68, 145);
/* oklch */ color: oklch(40.9% 0.133 264.7);
Tailwind
colors: {
  custom: {
    50: '#6f77b2',
    500: '#254491',
    950: '#000000',
  },
}
SCSS
$custom: #254491;
$custom-light: #6f77b2;
$custom-dark: #000000;
JSON
{
  "hex": "#254491",
  "rgb": {
    "r": 37,
    "g": 68,
    "b": 145
  },
  "hsl": {
    "h": 222.778,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40949,
    "c": 0.13266,
    "h": 264.7
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#254491
secondary
#BA9E58
accent
#B545E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #254491

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

Preview Lab → · Contrast checker → · Palette generator →

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