#162A5D#162A5D

#162A5D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.095 H 265.1°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#162A5D
RGBrgb(22, 42, 93)
HSLhsl(223, 62%, 23%)
HSVhsv(223, 76%, 36%)
CMYKcmyk(76.3%, 54.8%, 0%, 63.5%)
CIE-LABlab(18.44, 11.89, -32.90)
CIE-LCHlch(18.44, 34.98, 289.88°)
OKLaboklab(30.11% -0.0082 -0.0945)
OKLCHoklch(30.11% 0.095 265.1)
XYZxyz(3.1339, 2.6165, 10.6937)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A5D #5D4916
analogous
#164D5D #162A5D #26165D
triadic
#162A5D #5D162A #2A5D16
tetradic
#162A5D #5D164D #5D4916 #165D26
square
#162A5D #5D164D #5D4916 #165D26
split-complementary
#162A5D #5D2616 #4D5D16
monochromatic
#060B19 #0A142C #162A5D #22408E #2D57C0

Accessibility & contrast

On white

13.78
#162A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#162A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A5D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A5D#FFFFFF#000000##FFFFFF
##162A5D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162a5d;
/* rgb */ color: rgb(22, 42, 93);
/* oklch */ color: oklch(30.1% 0.095 265.1);
Tailwind
colors: {
  custom: {
    50: '#5e638b',
    500: '#162a5d',
    950: '#000000',
  },
}
SCSS
$custom: #162a5d;
$custom-light: #5e638b;
$custom-dark: #000000;
JSON
{
  "hex": "#162a5d",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 223.099,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30109,
    "c": 0.0949,
    "h": 265.1
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#162A5D
secondary
#947B3B
accent
#B743E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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