#162D9E#162D9E

#162D9E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.183 H 266.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#162D9E
RGBrgb(22, 45, 158)
HSLhsl(230, 76%, 35%)
HSVhsv(230, 86%, 62%)
CMYKcmyk(86.1%, 71.5%, 0%, 38%)
CIE-LABlab(25.31, 35.83, -62.88)
CIE-LCHlch(25.31, 72.37, 299.68°)
OKLaboklab(37.05% -0.0104 -0.1823)
OKLCHoklch(37.05% 0.183 266.7)
XYZxyz(7.4387, 4.5150, 32.8206)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D9E #9E8716
analogous
#16719E #162D9E #43169E
triadic
#162D9E #9E162D #2D9E16
tetradic
#162D9E #9E1671 #9E8716 #169E43
square
#162D9E #9E1671 #9E8716 #169E43
split-complementary
#162D9E #9E4316 #719E16
monochromatic
#070E33 #0F1E68 #162D9E #1D3CD4 #4963E6

Accessibility & contrast

On white

11.03
#162D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#162D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D9E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D9E#FFFFFF#000000##FFFFFF
##162D9E1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #162d9e;
/* rgb */ color: rgb(22, 45, 158);
/* oklch */ color: oklch(37.0% 0.183 266.7);
Tailwind
colors: {
  custom: {
    50: '#7066bc',
    500: '#162d9e',
    950: '#000000',
  },
}
SCSS
$custom: #162d9e;
$custom-light: #7066bc;
$custom-dark: #000000;
JSON
{
  "hex": "#162d9e",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 229.853,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37049,
    "c": 0.1826,
    "h": 266.7
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#162D9E
secondary
#C7B249
accent
#D236F2
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #162D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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