#162140#162140

#162140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.061 H 267.3°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#162140
RGBrgb(22, 33, 64)
HSLhsl(224, 49%, 17%)
HSVhsv(224, 66%, 25%)
CMYKcmyk(65.6%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.40, 6.54, -21.26)
CIE-LCHlch(13.40, 22.24, 287.10°)
OKLaboklab(25.58% -0.0028 -0.0605)
OKLCHoklch(25.58% 0.061 267.3)
XYZxyz(1.7998, 1.6283, 5.0689)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162140 #403516
analogous
#163640 #162140 #201640
triadic
#162140 #401621 #214016
tetradic
#162140 #401636 #403516 #164020
square
#162140 #401636 #403516 #164020
split-complementary
#162140 #402016 #364016
monochromatic
#080C17 #080C17 #162140 #26386E #35509B

Accessibility & contrast

On white

15.84
#162140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#162140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162140
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162140#FFFFFF#000000##FFFFFF
##1621401.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#0E213F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #162140;
/* rgb */ color: rgb(22, 33, 64);
/* oklch */ color: oklch(25.6% 0.061 267.3);
Tailwind
colors: {
  custom: {
    50: '#575b75',
    500: '#162140',
    950: '#000000',
  },
}
SCSS
$custom: #162140;
$custom-light: #575b75;
$custom-dark: #000000;
JSON
{
  "hex": "#162140",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 224.286,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25576,
    "c": 0.06053,
    "h": 267.3
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#162140
secondary
#77673B
accent
#B54FD8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #162140

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

Preview Lab → · Contrast checker → · Palette generator →

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