#254891#254891

#254891 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.8% C 0.127 H 262.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#254891
RGBrgb(37, 72, 145)
HSLhsl(221, 59%, 36%)
HSVhsv(221, 74%, 57%)
CMYKcmyk(74.5%, 50.3%, 0%, 43.1%)
CIE-LABlab(31.97, 14.07, -44.05)
CIE-LCHlch(31.97, 46.24, 287.72°)
OKLaboklab(41.83% -0.0158 -0.1265)
OKLCHoklch(41.83% 0.127 262.9)
XYZxyz(8.1893, 7.0715, 27.7159)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254891 #916E25
analogous
#257E91 #254891 #382591
triadic
#254891 #912548 #489125
tetradic
#254891 #91257E #916E25 #259138
square
#254891 #91257E #916E25 #259138
split-complementary
#254891 #913825 #7E9125
monochromatic
#0C182F #193060 #254891 #3160C2 #5B83D5

Accessibility & contrast

On white

8.70
#254891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#254891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254891
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254891#FFFFFF#000000##FFFFFF
##2548911.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5094
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254891;
/* rgb */ color: rgb(37, 72, 145);
/* oklch */ color: oklch(41.8% 0.127 262.9);
Tailwind
colors: {
  custom: {
    50: '#6f7ab2',
    500: '#254891',
    950: '#000000',
  },
}
SCSS
$custom: #254891;
$custom-light: #6f7ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#254891",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 145
  },
  "hsl": {
    "h": 220.556,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41832,
    "c": 0.12749,
    "h": 262.9
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#254891
secondary
#BA9A58
accent
#B045E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254891

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

Preview Lab → · Contrast checker → · Palette generator →

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