#162C7E#162C7E

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

Color values

HEX#162C7E
RGBrgb(22, 44, 126)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(82.5%, 65.1%, 0%, 50.6%)
CIE-LABlab(21.86, 24.09, -48.68)
CIE-LCHlch(21.86, 54.31, 296.33°)
OKLaboklab(33.57% -0.0082 -0.1408)
OKLCHoklch(33.57% 0.141 266.7)
XYZxyz(4.9961, 3.4777, 20.1426)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7E #7E6816
analogous
#16607E #162C7E #34167E
triadic
#162C7E #7E162C #2C7E16
tetradic
#162C7E #7E1660 #7E6816 #167E34
square
#162C7E #7E1660 #7E6816 #167E34
split-complementary
#162C7E #7E3416 #607E16
monochromatic
#05091A #0D1A4A #162C7E #1F3EB2 #3357DB

Accessibility & contrast

On white

12.38
#162C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162C7E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7E#FFFFFF#000000##FFFFFF
##162C7E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162c7e;
/* rgb */ color: rgb(22, 44, 126);
/* oklch */ color: oklch(33.6% 0.141 266.7);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#162c7e',
    950: '#000000',
  },
}
SCSS
$custom: #162c7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7e",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 227.308,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.14109,
    "h": 266.7
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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