#151879#151879

#151879 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.157 H 270.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#151879
RGBrgb(21, 24, 121)
HSLhsl(238, 70%, 28%)
HSVhsv(238, 83%, 47%)
CMYKcmyk(82.6%, 80.2%, 0%, 52.5%)
CIE-LABlab(16.47, 35.21, -54.38)
CIE-LCHlch(16.47, 64.78, 302.92°)
OKLaboklab(29.49% 0.0008 -0.1575)
OKLCHoklch(29.49% 0.157 270.3)
XYZxyz(4.0859, 2.1927, 18.2933)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151879 #797615
analogous
#154A79 #151879 #441579
triadic
#151879 #791518 #187915
tetradic
#151879 #79154A #797615 #157944
square
#151879 #79154A #797615 #157944
split-complementary
#151879 #794415 #4A7915
monochromatic
#05051A #0C0E45 #151879 #1E22AD #2E33DB

Accessibility & contrast

On white

14.60
#151879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151879
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151879#FFFFFF#000000##FFFFFF
##1518791.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151879;
/* rgb */ color: rgb(21, 24, 121);
/* oklch */ color: oklch(29.5% 0.157 270.3);
Tailwind
colors: {
  custom: {
    50: '#6756a1',
    500: '#151879',
    950: '#000000',
  },
}
SCSS
$custom: #151879;
$custom-light: #6756a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151879",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 238.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29491,
    "c": 0.15749,
    "h": 270.3
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#151879
secondary
#AFAB3B
accent
#E83BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151879

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

Preview Lab → · Contrast checker → · Palette generator →

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