#162A80#162A80

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

Color values

HEX#162A80
RGBrgb(22, 42, 128)
HSLhsl(229, 71%, 29%)
HSVhsv(229, 83%, 50%)
CMYKcmyk(82.8%, 67.2%, 0%, 49.8%)
CIE-LABlab(21.52, 26.28, -50.50)
CIE-LCHlch(21.52, 56.93, 297.50°)
OKLaboklab(33.37% -0.0071 -0.1462)
OKLCHoklch(33.37% 0.146 267.2)
XYZxyz(5.0538, 3.3844, 20.8048)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A80 #806C16
analogous
#165F80 #162A80 #371680
triadic
#162A80 #80162A #2A8016
tetradic
#162A80 #80165F #806C16 #168037
square
#162A80 #80165F #806C16 #168037
split-complementary
#162A80 #803716 #5F8016
monochromatic
#04091A #0D194C #162A80 #1F3BB4 #3454DC

Accessibility & contrast

On white

12.52
#162A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A80
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A80#FFFFFF#000000##FFFFFF
##162A801.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162a80;
/* rgb */ color: rgb(22, 42, 128);
/* oklch */ color: oklch(33.4% 0.146 267.2);
Tailwind
colors: {
  custom: {
    50: '#6863a6',
    500: '#162a80',
    950: '#000000',
  },
}
SCSS
$custom: #162a80;
$custom-light: #6863a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162a80",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 228.679,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.14638,
    "h": 267.2
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#162A80
secondary
#B59E3D
accent
#CC3AED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A80

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

Preview Lab → · Contrast checker → · Palette generator →

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