#161781#161781

#161781 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.168 H 270.2°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#161781
RGBrgb(22, 23, 129)
HSLhsl(239, 71%, 30%)
HSVhsv(239, 83%, 51%)
CMYKcmyk(82.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(17.31, 38.61, -58.08)
CIE-LCHlch(17.31, 69.75, 303.62°)
OKLaboklab(30.38% 0.0006 -0.1682)
OKLCHoklch(30.38% 0.168 270.2)
XYZxyz(4.5984, 2.3678, 20.9793)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161781 #818016
analogous
#164D81 #161781 #4A1681
triadic
#161781 #811617 #178116
tetradic
#161781 #81164D #818016 #16814A
square
#161781 #81164D #818016 #16814A
split-complementary
#161781 #814A16 #4D8116
monochromatic
#04051A #0D0E4D #161781 #1F20B5 #3536DD

Accessibility & contrast

On white

14.25
#161781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#161781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161781
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161781#FFFFFF#000000##FFFFFF
##1617811.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #161781;
/* rgb */ color: rgb(22, 23, 129);
/* oklch */ color: oklch(30.4% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#6a57a7',
    500: '#161781',
    950: '#000000',
  },
}
SCSS
$custom: #161781;
$custom-light: #6a57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#161781",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 239.439,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30383,
    "c": 0.1682,
    "h": 270.2
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#161781
secondary
#B6B43D
accent
#EC3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #161781

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

Preview Lab → · Contrast checker → · Palette generator →

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