#162041#162041

#162041 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.064 H 268.8°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#162041
RGBrgb(22, 32, 65)
HSLhsl(226, 49%, 17%)
HSVhsv(226, 66%, 25%)
CMYKcmyk(66.2%, 50.8%, 0%, 74.5%)
CIE-LABlab(13.14, 7.70, -22.37)
CIE-LCHlch(13.14, 23.66, 289.00°)
OKLaboklab(25.4% -0.0013 -0.0638)
OKLCHoklch(25.4% 0.064 268.8)
XYZxyz(1.8012, 1.5851, 5.2110)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162041 #413716
analogous
#163641 #162041 #221641
triadic
#162041 #411620 #204116
tetradic
#162041 #411636 #413716 #164122
square
#162041 #411636 #413716 #164122
split-complementary
#162041 #412216 #364116
monochromatic
#080B17 #080B17 #162041 #25376F #354D9C

Accessibility & contrast

On white

15.95
#162041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#162041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162041
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162041#FFFFFF#000000##FFFFFF
##1620411.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112442
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #162041;
/* rgb */ color: rgb(22, 32, 65);
/* oklch */ color: oklch(25.4% 0.064 268.8);
Tailwind
colors: {
  custom: {
    50: '#585b76',
    500: '#162041',
    950: '#000000',
  },
}
SCSS
$custom: #162041;
$custom-light: #585b76;
$custom-dark: #000000;
JSON
{
  "hex": "#162041",
  "rgb": {
    "r": 22,
    "g": 32,
    "b": 65
  },
  "hsl": {
    "h": 226.047,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25397,
    "c": 0.06377,
    "h": 268.8
  },
  "luminance": 0.01585
}

Semantic roles & 50–950 ramp

primary
#162041
secondary
#786A3A
accent
#B94FD9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #162041

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

Preview Lab → · Contrast checker → · Palette generator →

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