#162F7A#162F7A

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

Color values

HEX#162F7A
RGBrgb(22, 47, 122)
HSLhsl(225, 69%, 28%)
HSVhsv(225, 82%, 48%)
CMYKcmyk(82%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.33, 20.35, -45.38)
CIE-LCHlch(22.33, 49.73, 294.15°)
OKLaboklab(33.8% -0.0102 -0.1311)
OKLCHoklch(33.8% 0.132 265.6)
XYZxyz(4.8590, 3.6082, 18.8489)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7A #7A6116
analogous
#16617A #162F7A #2F167A
triadic
#162F7A #7A162F #2F7A16
tetradic
#162F7A #7A1661 #7A6116 #167A2F
square
#162F7A #7A1661 #7A6116 #167A2F
split-complementary
#162F7A #7A2F16 #617A16
monochromatic
#050A1A #0D1B46 #162F7A #1F43AE #315BDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##162F7A#FFFFFF#000000##FFFFFF
##162F7A1.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)
#003A7D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162f7a;
/* rgb */ color: rgb(22, 47, 122);
/* oklch */ color: oklch(33.8% 0.132 265.6);
Tailwind
colors: {
  custom: {
    50: '#6567a1',
    500: '#162f7a',
    950: '#000000',
  },
}
SCSS
$custom: #162f7a;
$custom-light: #6567a1;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7a",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 225,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33802,
    "c": 0.13153,
    "h": 265.6
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#162F7A
secondary
#AF933D
accent
#C03CEC
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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