#254790#254790

#254790 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.127 H 263.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#254790
RGBrgb(37, 71, 144)
HSLhsl(221, 59%, 35%)
HSVhsv(221, 74%, 56%)
CMYKcmyk(74.3%, 50.7%, 0%, 43.5%)
CIE-LABlab(31.61, 14.36, -44.02)
CIE-LCHlch(31.61, 46.30, 288.07°)
OKLaboklab(41.53% -0.0151 -0.1264)
OKLCHoklch(41.53% 0.127 263.2)
XYZxyz(8.0484, 6.9125, 27.2902)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254790 #906E25
analogous
#257C90 #254790 #392590
triadic
#254790 #902547 #479025
tetradic
#254790 #90257C #906E25 #259039
square
#254790 #90257C #906E25 #259039
split-complementary
#254790 #903925 #7C9025
monochromatic
#0C172F #182F5F #254790 #325FC1 #5B81D5

Accessibility & contrast

On white

8.81
#254790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#254790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254790
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254790#FFFFFF#000000##FFFFFF
##2547901.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5093
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254790;
/* rgb */ color: rgb(37, 71, 144);
/* oklch */ color: oklch(41.5% 0.127 263.2);
Tailwind
colors: {
  custom: {
    50: '#6f79b1',
    500: '#254790',
    950: '#000000',
  },
}
SCSS
$custom: #254790;
$custom-light: #6f79b1;
$custom-dark: #000000;
JSON
{
  "hex": "#254790",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 144
  },
  "hsl": {
    "h": 220.935,
    "s": 59.116,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41533,
    "c": 0.12734,
    "h": 263.2
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

primary
#254790
secondary
#B99A57
accent
#B045E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254790

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

Preview Lab → · Contrast checker → · Palette generator →

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