#151778#151778

#151778 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.157 H 270.5°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#151778
RGBrgb(21, 23, 120)
HSLhsl(239, 70%, 28%)
HSVhsv(239, 83%, 47%)
CMYKcmyk(82.5%, 80.8%, 0%, 52.9%)
CIE-LABlab(16.14, 35.43, -54.27)
CIE-LCHlch(16.14, 64.82, 303.14°)
OKLaboklab(29.23% 0.0013 -0.1572)
OKLCHoklch(29.23% 0.157 270.5)
XYZxyz(4.0047, 2.1278, 17.9653)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151778 #787615
analogous
#154878 #151778 #451578
triadic
#151778 #781517 #177815
tetradic
#151778 #781548 #787615 #157845
square
#151778 #781548 #787615 #157845
split-complementary
#151778 #784515 #487815
monochromatic
#05051A #0C0D44 #151778 #1E21AC #2D31DA

Accessibility & contrast

On white

14.73
#151778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151778
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151778#FFFFFF#000000##FFFFFF
##1517781.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151778;
/* rgb */ color: rgb(21, 23, 120);
/* oklch */ color: oklch(29.2% 0.157 270.5);
Tailwind
colors: {
  custom: {
    50: '#6756a0',
    500: '#151778',
    950: '#000000',
  },
}
SCSS
$custom: #151778;
$custom-light: #6756a0;
$custom-dark: #000000;
JSON
{
  "hex": "#151778",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 238.788,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.15718,
    "h": 270.5
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#151778
secondary
#AEAB3B
accent
#E93BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151778

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

Preview Lab → · Contrast checker → · Palette generator →

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