#162A58#162A58

#162A58 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.087 H 264.1°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#162A58
RGBrgb(22, 42, 88)
HSLhsl(222, 60%, 22%)
HSVhsv(222, 75%, 35%)
CMYKcmyk(75%, 52.3%, 0%, 65.5%)
CIE-LABlab(18.06, 9.79, -30.19)
CIE-LCHlch(18.06, 31.74, 287.97°)
OKLaboklab(29.7% -0.0089 -0.0866)
OKLCHoklch(29.7% 0.087 264.1)
XYZxyz(2.9197, 2.5308, 9.5652)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A58 #584416
analogous
#164B58 #162A58 #231658
triadic
#162A58 #58162A #2A5816
tetradic
#162A58 #58164B #584416 #165823
square
#162A58 #58164B #584416 #165823
split-complementary
#162A58 #582316 #4B5816
monochromatic
#060C18 #0A1327 #162A58 #224189 #2E59BA

Accessibility & contrast

On white

13.94
#162A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#162A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A58
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A58#FFFFFF#000000##FFFFFF
##162A581.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#022957
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162a58;
/* rgb */ color: rgb(22, 42, 88);
/* oklch */ color: oklch(29.7% 0.087 264.1);
Tailwind
colors: {
  custom: {
    50: '#5d6387',
    500: '#162a58',
    950: '#000000',
  },
}
SCSS
$custom: #162a58;
$custom-light: #5d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#162a58",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 88
  },
  "hsl": {
    "h": 221.818,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.08703,
    "h": 264.1
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#162A58
secondary
#8F763B
accent
#B345E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #162A58

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

Preview Lab → · Contrast checker → · Palette generator →

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