#162A7C#162A7C

#162A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.141 H 267.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#162A7C
RGBrgb(22, 42, 124)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(82.3%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.14, 24.69, -48.60)
CIE-LCHlch(21.14, 54.51, 296.93°)
OKLaboklab(32.97% -0.0069 -0.1406)
OKLCHoklch(32.97% 0.141 267.2)
XYZxyz(4.7957, 3.2812, 19.4455)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A7C #7C6816
analogous
#165D7C #162A7C #35167C
triadic
#162A7C #7C162A #2A7C16
tetradic
#162A7C #7C165D #7C6816 #167C35
square
#162A7C #7C165D #7C6816 #167C35
split-complementary
#162A7C #7C3516 #5D7C16
monochromatic
#05091A #0D1848 #162A7C #1F3CB0 #3253DB

Accessibility & contrast

On white

12.68
#162A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#162A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A7C
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A7C#FFFFFF#000000##FFFFFF
##162A7C1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162a7c;
/* rgb */ color: rgb(22, 42, 124);
/* oklch */ color: oklch(33.0% 0.141 267.2);
Tailwind
colors: {
  custom: {
    50: '#6663a3',
    500: '#162a7c',
    950: '#000000',
  },
}
SCSS
$custom: #162a7c;
$custom-light: #6663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162a7c",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 228.235,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.14082,
    "h": 267.2
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#162A7C
secondary
#B19A3D
accent
#CA3BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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