#162D7F#162D7F

#162D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.141 H 266.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#162D7F
RGBrgb(22, 45, 127)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 83%, 50%)
CMYKcmyk(82.7%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.23, 23.80, -48.71)
CIE-LCHlch(22.23, 54.21, 296.04°)
OKLaboklab(33.87% -0.0088 -0.1409)
OKLCHoklch(33.87% 0.141 266.4)
XYZxyz(5.0987, 3.5791, 20.4967)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7F #7F6816
analogous
#16627F #162D7F #34167F
triadic
#162D7F #7F162D #2D7F16
tetradic
#162D7F #7F1662 #7F6816 #167F34
square
#162D7F #7F1662 #7F6816 #167F34
split-complementary
#162D7F #7F3416 #627F16
monochromatic
#05091A #0D1B4B #162D7F #1F3FB3 #3458DC

Accessibility & contrast

On white

12.24
#162D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162D7F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7F#FFFFFF#000000##FFFFFF
##162D7F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162d7f;
/* rgb */ color: rgb(22, 45, 127);
/* oklch */ color: oklch(33.9% 0.141 266.4);
Tailwind
colors: {
  custom: {
    50: '#6765a5',
    500: '#162d7f',
    950: '#000000',
  },
}
SCSS
$custom: #162d7f;
$custom-light: #6765a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7f",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 226.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.14123,
    "h": 266.4
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#162D7F
secondary
#B49A3D
accent
#C63BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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