#162B5E#162B5E

#162B5E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.095 H 264.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#162B5E
RGBrgb(22, 43, 94)
HSLhsl(223, 62%, 23%)
HSVhsv(223, 77%, 37%)
CMYKcmyk(76.6%, 54.3%, 0%, 63.1%)
CIE-LABlab(18.83, 11.58, -32.93)
CIE-LCHlch(18.83, 34.91, 289.37°)
OKLaboklab(30.43% -0.009 -0.0946)
OKLCHoklch(30.43% 0.095 264.5)
XYZxyz(3.2144, 2.7061, 10.9404)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B5E #5E4916
analogous
#164F5E #162B5E #25165E
triadic
#162B5E #5E162B #2B5E16
tetradic
#162B5E #5E164F #5E4916 #165E25
square
#162B5E #5E164F #5E4916 #165E25
split-complementary
#162B5E #5E2516 #4F5E16
monochromatic
#060B19 #0A142C #162B5E #224290 #2D58C1

Accessibility & contrast

On white

13.63
#162B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#162B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B5E
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B5E#FFFFFF#000000##FFFFFF
##162B5E1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162b5e;
/* rgb */ color: rgb(22, 43, 94);
/* oklch */ color: oklch(30.4% 0.095 264.5);
Tailwind
colors: {
  custom: {
    50: '#5e638c',
    500: '#162b5e',
    950: '#000000',
  },
}
SCSS
$custom: #162b5e;
$custom-light: #5e638c;
$custom-dark: #000000;
JSON
{
  "hex": "#162b5e",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 94
  },
  "hsl": {
    "h": 222.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3043,
    "c": 0.09506,
    "h": 264.5
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#162B5E
secondary
#957B3B
accent
#B643E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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