#162C7D#162C7D

#162C7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.140 H 266.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#162C7D
RGBrgb(22, 44, 125)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(82.4%, 64.8%, 0%, 51%)
CIE-LABlab(21.77, 23.69, -48.20)
CIE-LCHlch(21.77, 53.70, 296.18°)
OKLaboklab(33.47% -0.0082 -0.1394)
OKLCHoklch(33.47% 0.14 266.6)
XYZxyz(4.9319, 3.4520, 19.8044)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7D #7D6716
analogous
#16607D #162C7D #34167D
triadic
#162C7D #7D162C #2C7D16
tetradic
#162C7D #7D1660 #7D6716 #167D34
square
#162C7D #7D1660 #7D6716 #167D34
split-complementary
#162C7D #7D3416 #607D16
monochromatic
#05091A #0D1A49 #162C7D #1F3EB1 #3256DB

Accessibility & contrast

On white

12.42
#162C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C7D
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7D#FFFFFF#000000##FFFFFF
##162C7D1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162c7d;
/* rgb */ color: rgb(22, 44, 125);
/* oklch */ color: oklch(33.5% 0.140 266.6);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#162c7d',
    950: '#000000',
  },
}
SCSS
$custom: #162c7d;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7d",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 227.184,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33469,
    "c": 0.13969,
    "h": 266.6
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#162C7D
secondary
#B2993D
accent
#C73BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C7D

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

Preview Lab → · Contrast checker → · Palette generator →

#162C7D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva