#162B8E#162B8E

#162B8E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.164 H 267.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#162B8E
RGBrgb(22, 43, 142)
HSLhsl(230, 73%, 32%)
HSVhsv(230, 85%, 56%)
CMYKcmyk(84.5%, 69.7%, 0%, 44.3%)
CIE-LABlab(23.17, 31.08, -56.56)
CIE-LCHlch(23.17, 64.53, 298.79°)
OKLaboklab(35% -0.0084 -0.1639)
OKLCHoklch(35% 0.164 267.1)
XYZxyz(6.0755, 3.8506, 26.0090)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B8E #8E7916
analogous
#16678E #162B8E #3D168E
triadic
#162B8E #8E162B #2B8E16
tetradic
#162B8E #8E1667 #8E7916 #168E3D
square
#162B8E #8E1667 #8E7916 #168E3D
split-complementary
#162B8E #8E3D16 #678E16
monochromatic
#060B24 #0E1B59 #162B8E #1E3BC3 #3D5AE1

Accessibility & contrast

On white

11.86
#162B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#162B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B8E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B8E#FFFFFF#000000##FFFFFF
##162B8E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162b8e;
/* rgb */ color: rgb(22, 43, 142);
/* oklch */ color: oklch(35.0% 0.164 267.1);
Tailwind
colors: {
  custom: {
    50: '#6b64b0',
    500: '#162b8e',
    950: '#000000',
  },
}
SCSS
$custom: #162b8e;
$custom-light: #6b64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#162b8e",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 229.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.1641,
    "h": 267.1
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#162B8E
secondary
#C1AA3F
accent
#D038F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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