#162B5F#162B5F

#162B5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.097 H 264.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#162B5F
RGBrgb(22, 43, 95)
HSLhsl(223, 62%, 23%)
HSVhsv(223, 77%, 37%)
CMYKcmyk(76.8%, 54.7%, 0%, 62.7%)
CIE-LABlab(18.90, 12.00, -33.47)
CIE-LCHlch(18.90, 35.56, 289.72°)
OKLaboklab(30.51% -0.0089 -0.0962)
OKLCHoklch(30.51% 0.097 264.7)
XYZxyz(3.2596, 2.7242, 11.1783)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B5F #5F4A16
analogous
#164F5F #162B5F #26165F
triadic
#162B5F #5F162B #2B5F16
tetradic
#162B5F #5F164F #5F4A16 #165F26
square
#162B5F #5F164F #5F4A16 #165F26
split-complementary
#162B5F #5F2616 #4F5F16
monochromatic
#060B19 #0A152D #162B5F #224191 #2D58C2

Accessibility & contrast

On white

13.59
#162B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#162B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B5F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B5F#FFFFFF#000000##FFFFFF
##162B5F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162b5f;
/* rgb */ color: rgb(22, 43, 95);
/* oklch */ color: oklch(30.5% 0.097 264.7);
Tailwind
colors: {
  custom: {
    50: '#5e638d',
    500: '#162b5f',
    950: '#000000',
  },
}
SCSS
$custom: #162b5f;
$custom-light: #5e638d;
$custom-dark: #000000;
JSON
{
  "hex": "#162b5f",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 95
  },
  "hsl": {
    "h": 222.74,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30513,
    "c": 0.09662,
    "h": 264.7
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#162B5F
secondary
#967C3B
accent
#B742E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #162B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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