#162181#162181

#162181 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.158 H 269.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#162181
RGBrgb(22, 33, 129)
HSLhsl(234, 71%, 30%)
HSVhsv(234, 83%, 51%)
CMYKcmyk(82.9%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.40, 32.68, -54.62)
CIE-LCHlch(19.40, 63.65, 300.89°)
OKLaboklab(31.87% -0.0028 -0.1582)
OKLCHoklch(31.87% 0.158 269)
XYZxyz(4.8358, 2.8427, 21.0585)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162181 #817616
analogous
#165781 #162181 #411681
triadic
#162181 #811621 #218116
tetradic
#162181 #811657 #817616 #168141
square
#162181 #811657 #817616 #168141
split-complementary
#162181 #814116 #578116
monochromatic
#04071A #0D144D #162181 #1F2EB5 #3546DD

Accessibility & contrast

On white

13.39
#162181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#162181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162181
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162181#FFFFFF#000000##FFFFFF
##1621811.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162181;
/* rgb */ color: rgb(22, 33, 129);
/* oklch */ color: oklch(31.9% 0.158 269.0);
Tailwind
colors: {
  custom: {
    50: '#695da7',
    500: '#162181',
    950: '#000000',
  },
}
SCSS
$custom: #162181;
$custom-light: #695da7;
$custom-dark: #000000;
JSON
{
  "hex": "#162181",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 233.832,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31865,
    "c": 0.15827,
    "h": 269
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#162181
secondary
#B6A93D
accent
#DB3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #162181

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

Preview Lab → · Contrast checker → · Palette generator →

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