#162A5C#162A5C

#162A5C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.093 H 264.9°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#162A5C
RGBrgb(22, 42, 92)
HSLhsl(223, 61%, 22%)
HSVhsv(223, 76%, 36%)
CMYKcmyk(76.1%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.36, 11.47, -32.36)
CIE-LCHlch(18.36, 34.34, 289.52°)
OKLaboklab(30.03% -0.0083 -0.093)
OKLCHoklch(30.03% 0.093 264.9)
XYZxyz(3.0899, 2.5989, 10.4619)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A5C #5C4816
analogous
#164D5C #162A5C #25165C
triadic
#162A5C #5C162A #2A5C16
tetradic
#162A5C #5C164D #5C4816 #165C25
square
#162A5C #5C164D #5C4816 #165C25
split-complementary
#162A5C #5C2516 #4D5C16
monochromatic
#060B19 #0A132B #162A5C #22418D #2E57BF

Accessibility & contrast

On white

13.82
#162A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A5C
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A5C#FFFFFF#000000##FFFFFF
##162A5C1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162a5c;
/* rgb */ color: rgb(22, 42, 92);
/* oklch */ color: oklch(30.0% 0.093 264.9);
Tailwind
colors: {
  custom: {
    50: '#5e638a',
    500: '#162a5c',
    950: '#000000',
  },
}
SCSS
$custom: #162a5c;
$custom-light: #5e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#162a5c",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 222.857,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30026,
    "c": 0.09334,
    "h": 264.9
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#162A5C
secondary
#937A3B
accent
#B643E5
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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