#151479#151479

#151479 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.9% C 0.161 H 270.7°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#151479
RGBrgb(21, 20, 121)
HSLhsl(241, 72%, 28%)
HSVhsv(241, 83%, 47%)
CMYKcmyk(82.6%, 83.5%, 0%, 52.5%)
CIE-LABlab(15.69, 37.44, -55.66)
CIE-LCHlch(15.69, 67.08, 303.93°)
OKLaboklab(28.95% 0.002 -0.1611)
OKLCHoklch(28.95% 0.161 270.7)
XYZxyz(4.0094, 2.0398, 18.2679)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151479 #787914
analogous
#144579 #151479 #471479
triadic
#151479 #791514 #147915
tetradic
#151479 #791445 #787914 #147947
square
#151479 #791445 #787914 #147947
split-complementary
#151479 #794714 #457914
monochromatic
#05041A #0C0B44 #151479 #1E1DAE #2D2BDC

Accessibility & contrast

On white

14.91
#151479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151479
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151479#FFFFFF#000000##FFFFFF
##1514791.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151479;
/* rgb */ color: rgb(21, 20, 121);
/* oklch */ color: oklch(28.9% 0.161 270.7);
Tailwind
colors: {
  custom: {
    50: '#6854a1',
    500: '#151479',
    950: '#000000',
  },
}
SCSS
$custom: #151479;
$custom-light: #6854a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151479",
  "rgb": {
    "r": 21,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 240.594,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.28949,
    "c": 0.16116,
    "h": 270.7
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#151479
secondary
#AEAF3A
accent
#EE39ED
background
#F6F5FA
surface
#ECE8F3
border
#C7C4CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151479

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

Preview Lab → · Contrast checker → · Palette generator →

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