#161981#161981

#161981 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.166 H 270.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#161981
RGBrgb(22, 25, 129)
HSLhsl(238, 71%, 30%)
HSVhsv(238, 83%, 51%)
CMYKcmyk(82.9%, 80.6%, 0%, 49.4%)
CIE-LABlab(17.69, 37.51, -57.45)
CIE-LCHlch(17.69, 68.61, 303.14°)
OKLaboklab(30.65% 0 -0.1664)
OKLCHoklch(30.65% 0.166 270)
XYZxyz(4.6396, 2.4503, 20.9930)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161981 #817E16
analogous
#164E81 #161981 #491681
triadic
#161981 #811619 #198116
tetradic
#161981 #81164E #817E16 #168149
square
#161981 #81164E #817E16 #168149
split-complementary
#161981 #814916 #4E8116
monochromatic
#04051A #0D0F4D #161981 #1F23B5 #353ADD

Accessibility & contrast

On white

14.09
#161981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#161981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161981
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161981#FFFFFF#000000##FFFFFF
##1619811.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #161981;
/* rgb */ color: rgb(22, 25, 129);
/* oklch */ color: oklch(30.7% 0.166 270.0);
Tailwind
colors: {
  custom: {
    50: '#6a58a7',
    500: '#161981',
    950: '#000000',
  },
}
SCSS
$custom: #161981;
$custom-light: #6a58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#161981",
  "rgb": {
    "r": 22,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 238.318,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30651,
    "c": 0.16639,
    "h": 270
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

primary
#161981
secondary
#B6B23D
accent
#E93AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #161981

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

Preview Lab → · Contrast checker → · Palette generator →

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