#151790#151790

#151790 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.187 H 268.9°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#151790
RGBrgb(21, 23, 144)
HSLhsl(239, 75%, 32%)
HSVhsv(239, 85%, 56%)
CMYKcmyk(85.4%, 84%, 0%, 43.5%)
CIE-LABlab(19.16, 43.55, -64.43)
CIE-LCHlch(19.16, 77.77, 304.06°)
OKLaboklab(32.21% -0.0036 -0.1866)
OKLCHoklch(32.21% 0.187 268.9)
XYZxyz(5.6480, 2.7852, 26.6201)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151790 #908E15
analogous
#155590 #151790 #501590
triadic
#151790 #901517 #179015
tetradic
#151790 #901555 #908E15 #159050
square
#151790 #901555 #908E15 #159050
split-complementary
#151790 #905015 #559015
monochromatic
#050625 #0D0E5B #151790 #1D20C5 #3D3FE3

Accessibility & contrast

On white

13.49
#151790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#151790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151790
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151790#FFFFFF#000000##FFFFFF
##1517901.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#00288E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #151790;
/* rgb */ color: rgb(21, 23, 144);
/* oklch */ color: oklch(32.2% 0.187 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e58b2',
    500: '#151790',
    950: '#000000',
  },
}
SCSS
$custom: #151790;
$custom-light: #6e58b2;
$custom-dark: #000000;
JSON
{
  "hex": "#151790",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 239.024,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32205,
    "c": 0.18661,
    "h": 268.9
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#151790
secondary
#C2C03E
accent
#EE37F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #151790

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

Preview Lab → · Contrast checker → · Palette generator →

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