#162D77#162D77

#162D77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.130 H 266.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#162D77
RGBrgb(22, 45, 119)
HSLhsl(226, 69%, 28%)
HSVhsv(226, 82%, 47%)
CMYKcmyk(81.5%, 62.2%, 0%, 53.3%)
CIE-LABlab(21.50, 20.54, -44.82)
CIE-LCHlch(21.50, 49.31, 294.62°)
OKLaboklab(33.1% -0.0089 -0.1295)
OKLCHoklch(33.1% 0.13 266.1)
XYZxyz(4.5979, 3.3787, 17.8590)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D77 #776016
analogous
#165E77 #162D77 #2F1677
triadic
#162D77 #77162D #2D7716
tetradic
#162D77 #77165E #776016 #16772F
square
#162D77 #77165E #776016 #16772F
split-complementary
#162D77 #772F16 #5E7716
monochromatic
#050A1A #0C1943 #162D77 #2041AB #2F57D9

Accessibility & contrast

On white

12.53
#162D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D77
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D77#FFFFFF#000000##FFFFFF
##162D771.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162d77;
/* rgb */ color: rgb(22, 45, 119);
/* oklch */ color: oklch(33.1% 0.130 266.1);
Tailwind
colors: {
  custom: {
    50: '#65659f',
    500: '#162d77',
    950: '#000000',
  },
}
SCSS
$custom: #162d77;
$custom-light: #65659f;
$custom-dark: #000000;
JSON
{
  "hex": "#162d77",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 225.773,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.331,
    "c": 0.12984,
    "h": 266.1
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#162D77
secondary
#AC923C
accent
#C23CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162D77

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

Preview Lab → · Contrast checker → · Palette generator →

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