#162D76#162D76

#162D76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.0% C 0.128 H 266.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#162D76
RGBrgb(22, 45, 118)
HSLhsl(226, 69%, 27%)
HSVhsv(226, 81%, 46%)
CMYKcmyk(81.4%, 61.9%, 0%, 53.7%)
CIE-LABlab(21.41, 20.13, -44.33)
CIE-LCHlch(21.41, 48.69, 294.42°)
OKLaboklab(33.01% -0.0089 -0.1281)
OKLCHoklch(33.01% 0.128 266)
XYZxyz(4.5381, 3.3548, 17.5444)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D76 #765F16
analogous
#165D76 #162D76 #2F1676
triadic
#162D76 #76162D #2D7616
tetradic
#162D76 #76165D #765F16 #16762F
square
#162D76 #76165D #765F16 #16762F
split-complementary
#162D76 #762F16 #5D7616
monochromatic
#050A1A #0C1942 #162D76 #2041AA #2E57D8

Accessibility & contrast

On white

12.57
#162D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D76
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D76#FFFFFF#000000##FFFFFF
##162D761.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162d76;
/* rgb */ color: rgb(22, 45, 118);
/* oklch */ color: oklch(33.0% 0.128 266.0);
Tailwind
colors: {
  custom: {
    50: '#64659e',
    500: '#162d76',
    950: '#000000',
  },
}
SCSS
$custom: #162d76;
$custom-light: #64659e;
$custom-dark: #000000;
JSON
{
  "hex": "#162d76",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 225.625,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33006,
    "c": 0.1284,
    "h": 266
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#162D76
secondary
#AC913C
accent
#C13CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162D76

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

Preview Lab → · Contrast checker → · Palette generator →

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