#162E5F#162E5F

#162E5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.092 H 262.7°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#162E5F
RGBrgb(22, 46, 95)
HSLhsl(220, 62%, 23%)
HSVhsv(220, 77%, 37%)
CMYKcmyk(76.8%, 51.6%, 0%, 62.7%)
CIE-LABlab(19.84, 9.80, -31.95)
CIE-LCHlch(19.84, 33.42, 287.06°)
OKLaboklab(31.23% -0.0118 -0.0917)
OKLCHoklch(31.23% 0.092 262.7)
XYZxyz(3.3727, 2.9504, 11.2160)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E5F #5F4716
analogous
#16525F #162E5F #22165F
triadic
#162E5F #5F162E #2E5F16
tetradic
#162E5F #5F1652 #5F4716 #165F22
square
#162E5F #5F1652 #5F4716 #165F22
split-complementary
#162E5F #5F2216 #525F16
monochromatic
#060C19 #0A162D #162E5F #224691 #2D5EC2

Accessibility & contrast

On white

13.21
#162E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E5F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E5F#FFFFFF#000000##FFFFFF
##162E5F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133461
Deuteranopia (green-blind)
#012D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162e5f;
/* rgb */ color: rgb(22, 46, 95);
/* oklch */ color: oklch(31.2% 0.092 262.7);
Tailwind
colors: {
  custom: {
    50: '#5e668d',
    500: '#162e5f',
    950: '#000000',
  },
}
SCSS
$custom: #162e5f;
$custom-light: #5e668d;
$custom-dark: #000000;
JSON
{
  "hex": "#162e5f",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 220.274,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31231,
    "c": 0.09245,
    "h": 262.7
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#162E5F
secondary
#96783B
accent
#B042E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #162E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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