#162B7E#162B7E

#162B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 266.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#162B7E
RGBrgb(22, 43, 126)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 83%, 49%)
CMYKcmyk(82.5%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.59, 24.79, -49.12)
CIE-LCHlch(21.59, 55.02, 296.78°)
OKLaboklab(33.37% -0.0076 -0.1421)
OKLCHoklch(33.37% 0.142 266.9)
XYZxyz(4.9593, 3.4041, 20.1303)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B7E #7E6916
analogous
#165F7E #162B7E #35167E
triadic
#162B7E #7E162B #2B7E16
tetradic
#162B7E #7E165F #7E6916 #167E35
square
#162B7E #7E165F #7E6916 #167E35
split-complementary
#162B7E #7E3516 #5F7E16
monochromatic
#05091A #0D194A #162B7E #1F3DB2 #3355DB

Accessibility & contrast

On white

12.49
#162B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B7E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B7E#FFFFFF#000000##FFFFFF
##162B7E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162b7e;
/* rgb */ color: rgb(22, 43, 126);
/* oklch */ color: oklch(33.4% 0.142 266.9);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#162b7e',
    950: '#000000',
  },
}
SCSS
$custom: #162b7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162b7e",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 227.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.14235,
    "h": 266.9
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#162B7E
secondary
#B39B3D
accent
#C93BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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