#162C7C#162C7C

#162C7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.138 H 266.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#162C7C
RGBrgb(22, 44, 124)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(82.3%, 64.5%, 0%, 51.4%)
CIE-LABlab(21.68, 23.29, -47.71)
CIE-LCHlch(21.68, 53.09, 296.01°)
OKLaboklab(33.37% -0.0082 -0.138)
OKLCHoklch(33.37% 0.138 266.6)
XYZxyz(4.8684, 3.4266, 19.4697)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7C #7C6616
analogous
#165F7C #162C7C #33167C
triadic
#162C7C #7C162C #2C7C16
tetradic
#162C7C #7C165F #7C6616 #167C33
square
#162C7C #7C165F #7C6616 #167C33
split-complementary
#162C7C #7C3316 #5F7C16
monochromatic
#05091A #0D1A48 #162C7C #1F3EB0 #3256DB

Accessibility & contrast

On white

12.46
#162C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162C7C
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7C#FFFFFF#000000##FFFFFF
##162C7C1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162c7c;
/* rgb */ color: rgb(22, 44, 124);
/* oklch */ color: oklch(33.4% 0.138 266.6);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#162c7c',
    950: '#000000',
  },
}
SCSS
$custom: #162c7c;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7c",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 227.059,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.13827,
    "h": 266.6
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#162C7C
secondary
#B1983D
accent
#C63BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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