#154791#154791

#154791 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.133 H 258.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#154791
RGBrgb(21, 71, 145)
HSLhsl(216, 75%, 33%)
HSVhsv(216, 86%, 57%)
CMYKcmyk(85.5%, 51%, 0%, 43.1%)
CIE-LABlab(31.14, 12.91, -45.42)
CIE-LCHlch(31.14, 47.22, 285.87°)
OKLaboklab(41.04% -0.0259 -0.1308)
OKLCHoklch(41.04% 0.133 258.8)
XYZxyz(7.6715, 6.7093, 27.6733)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154791 #915F15
analogous
#158591 #154791 #211591
triadic
#154791 #911547 #479115
tetradic
#154791 #911585 #915F15 #159121
square
#154791 #911585 #915F15 #159121
split-complementary
#154791 #912115 #859115
monochromatic
#061326 #0D2D5C #154791 #1D61C6 #3D80E3

Accessibility & contrast

On white

8.97
#154791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#154791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154791
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154791#FFFFFF#000000##FFFFFF
##1547911.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194F94
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #154791;
/* rgb */ color: rgb(21, 71, 145);
/* oklch */ color: oklch(41.0% 0.133 258.8);
Tailwind
colors: {
  custom: {
    50: '#6a79b2',
    500: '#154791',
    950: '#000000',
  },
}
SCSS
$custom: #154791;
$custom-light: #6a79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#154791",
  "rgb": {
    "r": 21,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 215.806,
    "s": 74.699,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41042,
    "c": 0.13333,
    "h": 258.8
  },
  "luminance": 0.0671
}

Semantic roles & 50–950 ramp

primary
#154791
secondary
#C38E3F
accent
#A636F1
background
#F6F7FB
surface
#ECEDF6
border
#C7C8D0
text
#080911
muted
#7A7B80

Preview Lab

Preview with #154791

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

Preview Lab → · Contrast checker → · Palette generator →

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