#162C83#162C83

#162C83 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.148 H 266.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#162C83
RGBrgb(22, 44, 131)
HSLhsl(228, 71%, 30%)
HSVhsv(228, 83%, 51%)
CMYKcmyk(83.2%, 66.4%, 0%, 48.6%)
CIE-LABlab(22.34, 26.10, -51.05)
CIE-LCHlch(22.34, 57.34, 297.07°)
OKLaboklab(34.06% -0.0083 -0.1478)
OKLCHoklch(34.06% 0.148 266.8)
XYZxyz(5.3269, 3.6100, 21.8844)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C83 #836D16
analogous
#166283 #162C83 #371683
triadic
#162C83 #83162C #2C8316
tetradic
#162C83 #831662 #836D16 #168337
square
#162C83 #831662 #836D16 #168337
split-complementary
#162C83 #833716 #628316
monochromatic
#04091A #0D1A4F #162C83 #1F3EB7 #3658DD

Accessibility & contrast

On white

12.19
#162C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#162C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C83
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C83#FFFFFF#000000##FFFFFF
##162C831.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162c83;
/* rgb */ color: rgb(22, 44, 131);
/* oklch */ color: oklch(34.1% 0.148 266.8);
Tailwind
colors: {
  custom: {
    50: '#6865a8',
    500: '#162c83',
    950: '#000000',
  },
}
SCSS
$custom: #162c83;
$custom-light: #6865a8;
$custom-dark: #000000;
JSON
{
  "hex": "#162c83",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 227.89,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.14804,
    "h": 266.8
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#162C83
secondary
#B79F3D
accent
#CA3AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070510
muted
#7A7A7F

Preview Lab

Preview with #162C83

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

Preview Lab → · Contrast checker → · Palette generator →

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