#162D7E#162D7E

#162D7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.140 H 266.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#162D7E
RGBrgb(22, 45, 126)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(82.5%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.14, 23.39, -48.23)
CIE-LCHlch(22.14, 53.61, 295.87°)
OKLaboklab(33.77% -0.0088 -0.1395)
OKLCHoklch(33.77% 0.14 266.4)
XYZxyz(5.0338, 3.5531, 20.1551)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7E #7E6716
analogous
#16617E #162D7E #33167E
triadic
#162D7E #7E162D #2D7E16
tetradic
#162D7E #7E1661 #7E6716 #167E33
square
#162D7E #7E1661 #7E6716 #167E33
split-complementary
#162D7E #7E3316 #617E16
monochromatic
#05091A #0D1A4A #162D7E #1F40B2 #3358DB

Accessibility & contrast

On white

12.27
#162D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#162D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D7E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7E#FFFFFF#000000##FFFFFF
##162D7E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162d7e;
/* rgb */ color: rgb(22, 45, 126);
/* oklch */ color: oklch(33.8% 0.140 266.4);
Tailwind
colors: {
  custom: {
    50: '#6765a4',
    500: '#162d7e',
    950: '#000000',
  },
}
SCSS
$custom: #162d7e;
$custom-light: #6765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7e",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 226.731,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33768,
    "c": 0.13982,
    "h": 266.4
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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