#162D8F#162D8F

#162D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 266.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#162D8F
RGBrgb(22, 45, 143)
HSLhsl(229, 73%, 32%)
HSVhsv(229, 85%, 56%)
CMYKcmyk(84.6%, 68.5%, 0%, 43.9%)
CIE-LABlab(23.77, 30.13, -56.19)
CIE-LCHlch(23.77, 63.76, 298.20°)
OKLaboklab(35.47% -0.0093 -0.1628)
OKLCHoklch(35.47% 0.163 266.7)
XYZxyz(6.2255, 4.0298, 26.4310)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D8F #8F7816
analogous
#166A8F #162D8F #3C168F
triadic
#162D8F #8F162D #2D8F16
tetradic
#162D8F #8F166A #8F7816 #168F3C
square
#162D8F #8F166A #8F7816 #168F3C
split-complementary
#162D8F #8F3C16 #6A8F16
monochromatic
#060C25 #0E1C5A #162D8F #1E3EC4 #3E5DE1

Accessibility & contrast

On white

11.63
#162D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#162D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D8F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D8F#FFFFFF#000000##FFFFFF
##162D8F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #162d8f;
/* rgb */ color: rgb(22, 45, 143);
/* oklch */ color: oklch(35.5% 0.163 266.7);
Tailwind
colors: {
  custom: {
    50: '#6c66b1',
    500: '#162d8f',
    950: '#000000',
  },
}
SCSS
$custom: #162d8f;
$custom-light: #6c66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#162d8f",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 228.595,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.16309,
    "h": 266.7
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#162D8F
secondary
#C1A93F
accent
#CD38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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