#162162#162162

#162162 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.115 H 270.0°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#162162
RGBrgb(22, 33, 98)
HSLhsl(231, 63%, 24%)
HSVhsv(231, 78%, 38%)
CMYKcmyk(77.6%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.20, 20.57, -39.84)
CIE-LCHlch(16.20, 44.84, 297.31°)
OKLaboklab(28.57% -0.0001 -0.1151)
OKLCHoklch(28.57% 0.115 270)
XYZxyz(3.0786, 2.1398, 11.8037)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162162 #625716
analogous
#164762 #162162 #311662
triadic
#162162 #621621 #216216
tetradic
#162162 #621647 #625716 #166231
square
#162162 #621647 #625716 #166231
split-complementary
#162162 #623116 #476216
monochromatic
#060819 #0B1030 #162162 #213294 #2C43C6

Accessibility & contrast

On white

14.71
#162162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#162162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162162
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162162#FFFFFF#000000##FFFFFF
##1621621.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #162162;
/* rgb */ color: rgb(22, 33, 98);
/* oklch */ color: oklch(28.6% 0.115 270.0);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#162162',
    950: '#000000',
  },
}
SCSS
$custom: #162162;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#162162",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 231.316,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28571,
    "c": 0.11508,
    "h": 270
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#162162
secondary
#998B3B
accent
#CE41E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #162162

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

Preview Lab → · Contrast checker → · Palette generator →

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