#162D80#162D80

#162D80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.143 H 266.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#162D80
RGBrgb(22, 45, 128)
HSLhsl(227, 71%, 29%)
HSVhsv(227, 83%, 50%)
CMYKcmyk(82.8%, 64.8%, 0%, 49.8%)
CIE-LABlab(22.32, 24.20, -49.19)
CIE-LCHlch(22.32, 54.82, 296.19°)
OKLaboklab(33.96% -0.0088 -0.1423)
OKLCHoklch(33.96% 0.143 266.5)
XYZxyz(5.1642, 3.6053, 20.8416)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D80 #806916
analogous
#166280 #162D80 #341680
triadic
#162D80 #80162D #2D8016
tetradic
#162D80 #801662 #806916 #168034
square
#162D80 #801662 #806916 #168034
split-complementary
#162D80 #803416 #628016
monochromatic
#04091A #0D1B4C #162D80 #1F3FB4 #3459DC

Accessibility & contrast

On white

12.20
#162D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#162D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D80
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D80#FFFFFF#000000##FFFFFF
##162D801.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162d80;
/* rgb */ color: rgb(22, 45, 128);
/* oklch */ color: oklch(34.0% 0.143 266.5);
Tailwind
colors: {
  custom: {
    50: '#6765a6',
    500: '#162d80',
    950: '#000000',
  },
}
SCSS
$custom: #162d80;
$custom-light: #6765a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162d80",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 226.981,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33963,
    "c": 0.14262,
    "h": 266.5
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#162D80
secondary
#B59B3D
accent
#C73AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D80

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

Preview Lab → · Contrast checker → · Palette generator →

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