#162D7C#162D7C

#162D7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.137 H 266.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#162D7C
RGBrgb(22, 45, 124)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(82.3%, 63.7%, 0%, 51.4%)
CIE-LABlab(21.95, 22.58, -47.27)
CIE-LCHlch(21.95, 52.38, 295.54°)
OKLaboklab(33.58% -0.0088 -0.1367)
OKLCHoklch(33.58% 0.137 266.3)
XYZxyz(4.9061, 3.5020, 19.4823)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7C #7C6516
analogous
#16607C #162D7C #32167C
triadic
#162D7C #7C162D #2D7C16
tetradic
#162D7C #7C1660 #7C6516 #167C32
square
#162D7C #7C1660 #7C6516 #167C32
split-complementary
#162D7C #7C3216 #607C16
monochromatic
#05091A #0D1A48 #162D7C #1F40B0 #3258DB

Accessibility & contrast

On white

12.35
#162D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D7C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7C#FFFFFF#000000##FFFFFF
##162D7C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162d7c;
/* rgb */ color: rgb(22, 45, 124);
/* oklch */ color: oklch(33.6% 0.137 266.3);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#162d7c',
    950: '#000000',
  },
}
SCSS
$custom: #162d7c;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7c",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 226.471,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33575,
    "c": 0.13699,
    "h": 266.3
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#162D7C
secondary
#B1973D
accent
#C53BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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