#161879#161879

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

Color values

HEX#161879
RGBrgb(22, 24, 121)
HSLhsl(239, 69%, 28%)
HSVhsv(239, 82%, 47%)
CMYKcmyk(81.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(16.52, 35.28, -54.29)
CIE-LCHlch(16.52, 64.74, 303.02°)
OKLaboklab(29.55% 0.0019 -0.1572)
OKLCHoklch(29.55% 0.157 270.7)
XYZxyz(4.1075, 2.2039, 18.2944)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161879 #797716
analogous
#164979 #161879 #451679
triadic
#161879 #791618 #187916
tetradic
#161879 #791649 #797716 #167945
square
#161879 #791649 #797716 #167945
split-complementary
#161879 #794516 #497916
monochromatic
#05051A #0D0E45 #161879 #1F22AD #3033D9

Accessibility & contrast

On white

14.58
#161879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161879
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161879#FFFFFF#000000##FFFFFF
##1618791.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.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: #161879;
/* rgb */ color: rgb(22, 24, 121);
/* oklch */ color: oklch(29.5% 0.157 270.7);
Tailwind
colors: {
  custom: {
    50: '#6857a1',
    500: '#161879',
    950: '#000000',
  },
}
SCSS
$custom: #161879;
$custom-light: #6857a1;
$custom-dark: #000000;
JSON
{
  "hex": "#161879",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 238.788,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29545,
    "c": 0.15722,
    "h": 270.7
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#161879
secondary
#AEAC3D
accent
#E83CEC
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #161879

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

Preview Lab → · Contrast checker → · Palette generator →

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