#254A91#254A91

#254A91 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.125 H 261.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#254A91
RGBrgb(37, 74, 145)
HSLhsl(219, 59%, 36%)
HSVhsv(219, 74%, 57%)
CMYKcmyk(74.5%, 49%, 0%, 43.1%)
CIE-LABlab(32.56, 12.72, -43.10)
CIE-LCHlch(32.56, 44.94, 286.44°)
OKLaboklab(42.28% -0.0176 -0.1237)
OKLCHoklch(42.28% 0.125 261.9)
XYZxyz(8.3207, 7.3343, 27.7597)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A91 #916C25
analogous
#258091 #254A91 #362591
triadic
#254A91 #91254A #4A9125
tetradic
#254A91 #912580 #916C25 #259136
square
#254A91 #912580 #916C25 #259136
split-complementary
#254A91 #913625 #809125
monochromatic
#0C182F #193160 #254A91 #3163C2 #5B85D5

Accessibility & contrast

On white

8.51
#254A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#254A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A91
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A91#FFFFFF#000000##FFFFFF
##254A911.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235294
Deuteranopia (green-blind)
#044890
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254a91;
/* rgb */ color: rgb(37, 74, 145);
/* oklch */ color: oklch(42.3% 0.125 261.9);
Tailwind
colors: {
  custom: {
    50: '#6f7cb2',
    500: '#254a91',
    950: '#000000',
  },
}
SCSS
$custom: #254a91;
$custom-light: #6f7cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#254a91",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 145
  },
  "hsl": {
    "h": 219.444,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.12493,
    "h": 261.9
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

primary
#254A91
secondary
#BA9858
accent
#AD45E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254A91

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

Preview Lab → · Contrast checker → · Palette generator →

#254A91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva