#162971#162971

#162971 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.126 H 267.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#162971
RGBrgb(22, 41, 113)
HSLhsl(227, 67%, 26%)
HSVhsv(227, 81%, 44%)
CMYKcmyk(80.5%, 63.7%, 0%, 55.7%)
CIE-LABlab(19.84, 20.94, -43.69)
CIE-LCHlch(19.84, 48.45, 295.61°)
OKLaboklab(31.69% -0.0062 -0.1263)
OKLCHoklch(31.69% 0.126 267.2)
XYZxyz(4.1034, 2.9482, 15.9724)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162971 #715E16
analogous
#165771 #162971 #311671
triadic
#162971 #711629 #297116
tetradic
#162971 #711657 #715E16 #167131
square
#162971 #711657 #715E16 #167131
split-complementary
#162971 #713116 #577116
monochromatic
#05091A #0C163E #162971 #203CA4 #2C4FD6

Accessibility & contrast

On white

13.21
#162971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162971
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162971#FFFFFF#000000##FFFFFF
##1629711.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162971;
/* rgb */ color: rgb(22, 41, 113);
/* oklch */ color: oklch(31.7% 0.126 267.2);
Tailwind
colors: {
  custom: {
    50: '#63629b',
    500: '#162971',
    950: '#000000',
  },
}
SCSS
$custom: #162971;
$custom-light: #63629b;
$custom-dark: #000000;
JSON
{
  "hex": "#162971",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 227.473,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31692,
    "c": 0.12644,
    "h": 267.2
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#162971
secondary
#A7913C
accent
#C63EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162971

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

Preview Lab → · Contrast checker → · Palette generator →

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