#162381#162381

#162381 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.156 H 268.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#162381
RGBrgb(22, 35, 129)
HSLhsl(233, 71%, 30%)
HSVhsv(233, 83%, 51%)
CMYKcmyk(82.9%, 72.9%, 0%, 49.4%)
CIE-LABlab(19.87, 31.39, -53.85)
CIE-LCHlch(19.87, 62.33, 300.24°)
OKLaboklab(32.2% -0.0037 -0.156)
OKLCHoklch(32.2% 0.156 268.7)
XYZxyz(4.8930, 2.9570, 21.0775)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162381 #817416
analogous
#165981 #162381 #3E1681
triadic
#162381 #811623 #238116
tetradic
#162381 #811659 #817416 #16813E
square
#162381 #811659 #817416 #16813E
split-complementary
#162381 #813E16 #598116
monochromatic
#04071A #0D154D #162381 #1F31B5 #3549DD

Accessibility & contrast

On white

13.19
#162381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162381
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162381#FFFFFF#000000##FFFFFF
##1623811.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162381;
/* rgb */ color: rgb(22, 35, 129);
/* oklch */ color: oklch(32.2% 0.156 268.7);
Tailwind
colors: {
  custom: {
    50: '#695ea7',
    500: '#162381',
    950: '#000000',
  },
}
SCSS
$custom: #162381;
$custom-light: #695ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#162381",
  "rgb": {
    "r": 22,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 232.71,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.15605,
    "h": 268.7
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#162381
secondary
#B6A73D
accent
#D83AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #162381

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

Preview Lab → · Contrast checker → · Palette generator →

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