#162A72#162A72

#162A72 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.127 H 266.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#162A72
RGBrgb(22, 42, 114)
HSLhsl(227, 68%, 27%)
HSVhsv(227, 81%, 45%)
CMYKcmyk(80.7%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.21, 20.63, -43.73)
CIE-LCHlch(20.21, 48.35, 295.26°)
OKLaboklab(32% -0.0068 -0.1264)
OKLCHoklch(32% 0.127 266.9)
XYZxyz(4.1950, 3.0409, 16.2822)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A72 #725E16
analogous
#165872 #162A72 #301672
triadic
#162A72 #72162A #2A7216
tetradic
#162A72 #721658 #725E16 #167230
square
#162A72 #721658 #725E16 #167230
split-complementary
#162A72 #723016 #587216
monochromatic
#05091A #0C173F #162A72 #203DA5 #2C51D6

Accessibility & contrast

On white

13.06
#162A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A72
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A72#FFFFFF#000000##FFFFFF
##162A721.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162a72;
/* rgb */ color: rgb(22, 42, 114);
/* oklch */ color: oklch(32.0% 0.127 266.9);
Tailwind
colors: {
  custom: {
    50: '#64639b',
    500: '#162a72',
    950: '#000000',
  },
}
SCSS
$custom: #162a72;
$custom-light: #64639b;
$custom-dark: #000000;
JSON
{
  "hex": "#162a72",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 226.957,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31996,
    "c": 0.12657,
    "h": 266.9
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#162A72
secondary
#A8903C
accent
#C53DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A72

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

Preview Lab → · Contrast checker → · Palette generator →

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