#151779#151779

#151779 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.158 H 270.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#151779
RGBrgb(21, 23, 121)
HSLhsl(239, 70%, 28%)
HSVhsv(239, 83%, 47%)
CMYKcmyk(82.6%, 81%, 0%, 52.5%)
CIE-LABlab(16.27, 35.78, -54.71)
CIE-LCHlch(16.27, 65.38, 303.19°)
OKLaboklab(29.35% 0.0011 -0.1584)
OKLCHoklch(29.35% 0.158 270.4)
XYZxyz(4.0657, 2.1522, 18.2866)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151779 #797715
analogous
#154979 #151779 #451579
triadic
#151779 #791517 #177915
tetradic
#151779 #791549 #797715 #157945
square
#151779 #791549 #797715 #157945
split-complementary
#151779 #794515 #497915
monochromatic
#05051A #0C0D45 #151779 #1E21AD #2E31DB

Accessibility & contrast

On white

14.68
#151779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151779
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151779#FFFFFF#000000##FFFFFF
##1517791.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002377
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151779;
/* rgb */ color: rgb(21, 23, 121);
/* oklch */ color: oklch(29.3% 0.158 270.4);
Tailwind
colors: {
  custom: {
    50: '#6756a1',
    500: '#151779',
    950: '#000000',
  },
}
SCSS
$custom: #151779;
$custom-light: #6756a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151779",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 238.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2935,
    "c": 0.15845,
    "h": 270.4
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#151779
secondary
#AFAC3B
accent
#EA3BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151779

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

Preview Lab → · Contrast checker → · Palette generator →

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