#151979#151979

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

Color values

HEX#151979
RGBrgb(21, 25, 121)
HSLhsl(238, 70%, 28%)
HSVhsv(238, 83%, 47%)
CMYKcmyk(82.6%, 79.3%, 0%, 52.5%)
CIE-LABlab(16.67, 34.62, -54.04)
CIE-LCHlch(16.67, 64.18, 302.64°)
OKLaboklab(29.64% 0.0004 -0.1565)
OKLCHoklch(29.64% 0.157 270.2)
XYZxyz(4.1069, 2.2347, 18.3003)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151979 #797515
analogous
#154B79 #151979 #431579
triadic
#151979 #791519 #197915
tetradic
#151979 #79154B #797515 #157943
square
#151979 #79154B #797515 #157943
split-complementary
#151979 #794315 #4B7915
monochromatic
#05051A #0C0E45 #151979 #1E24AD #2E35DB

Accessibility & contrast

On white

14.51
#151979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#151979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151979
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151979#FFFFFF#000000##FFFFFF
##1519791.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151979;
/* rgb */ color: rgb(21, 25, 121);
/* oklch */ color: oklch(29.6% 0.157 270.2);
Tailwind
colors: {
  custom: {
    50: '#6757a1',
    500: '#151979',
    950: '#000000',
  },
}
SCSS
$custom: #151979;
$custom-light: #6757a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151979",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 237.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29636,
    "c": 0.15652,
    "h": 270.2
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#151979
secondary
#AFAA3B
accent
#E63BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151979

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

Preview Lab → · Contrast checker → · Palette generator →

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