#151579#151579

#151579 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.160 H 270.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#151579
RGBrgb(21, 21, 121)
HSLhsl(240, 70%, 28%)
HSVhsv(240, 83%, 47%)
CMYKcmyk(82.6%, 82.6%, 0%, 52.5%)
CIE-LABlab(15.88, 36.90, -55.35)
CIE-LCHlch(15.88, 66.53, 303.69°)
OKLaboklab(29.08% 0.0017 -0.1603)
OKLCHoklch(29.08% 0.16 270.6)
XYZxyz(4.0274, 2.0758, 18.2739)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151579 #797915
analogous
#154779 #151579 #471579
triadic
#151579 #791515 #157915
tetradic
#151579 #791547 #797915 #157947
square
#151579 #791547 #797915 #157947
split-complementary
#151579 #794715 #477915
monochromatic
#05051A #0C0C45 #151579 #1E1EAD #2E2EDB

Accessibility & contrast

On white

14.84
#151579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151579
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151579#FFFFFF#000000##FFFFFF
##1515791.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151579;
/* rgb */ color: rgb(21, 21, 121);
/* oklch */ color: oklch(29.1% 0.160 270.6);
Tailwind
colors: {
  custom: {
    50: '#6855a1',
    500: '#151579',
    950: '#000000',
  },
}
SCSS
$custom: #151579;
$custom-light: #6855a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151579",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29079,
    "c": 0.16028,
    "h": 270.6
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#151579
secondary
#AFAF3B
accent
#ED3BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151579

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

Preview Lab → · Contrast checker → · Palette generator →

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