#162A5E#162A5E

#162A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.096 H 265.2°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#162A5E
RGBrgb(22, 42, 94)
HSLhsl(223, 62%, 23%)
HSVhsv(223, 77%, 37%)
CMYKcmyk(76.6%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.52, 12.32, -33.44)
CIE-LCHlch(18.52, 35.63, 290.22°)
OKLaboklab(30.19% -0.0081 -0.0961)
OKLCHoklch(30.19% 0.096 265.2)
XYZxyz(3.1785, 2.6343, 10.9285)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A5E #5E4A16
analogous
#164E5E #162A5E #26165E
triadic
#162A5E #5E162A #2A5E16
tetradic
#162A5E #5E164E #5E4A16 #165E26
square
#162A5E #5E164E #5E4A16 #165E26
split-complementary
#162A5E #5E2616 #4E5E16
monochromatic
#060B19 #0A142C #162A5E #224090 #2D56C1

Accessibility & contrast

On white

13.75
#162A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#162A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A5E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A5E#FFFFFF#000000##FFFFFF
##162A5E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162a5e;
/* rgb */ color: rgb(22, 42, 94);
/* oklch */ color: oklch(30.2% 0.096 265.2);
Tailwind
colors: {
  custom: {
    50: '#5e638c',
    500: '#162a5e',
    950: '#000000',
  },
}
SCSS
$custom: #162a5e;
$custom-light: #5e638c;
$custom-dark: #000000;
JSON
{
  "hex": "#162a5e",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 223.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30193,
    "c": 0.09647,
    "h": 265.2
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#162A5E
secondary
#957C3B
accent
#B843E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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