#162783#162783

#162783 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.154 H 267.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#162783
RGBrgb(22, 39, 131)
HSLhsl(231, 71%, 30%)
HSVhsv(231, 83%, 51%)
CMYKcmyk(83.2%, 70.2%, 0%, 48.6%)
CIE-LABlab(21.06, 29.50, -53.16)
CIE-LCHlch(21.06, 60.80, 299.03°)
OKLaboklab(33.12% -0.0057 -0.154)
OKLCHoklch(33.12% 0.154 267.9)
XYZxyz(5.1517, 3.2597, 21.8260)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162783 #837216
analogous
#165E83 #162783 #3B1683
triadic
#162783 #831627 #278316
tetradic
#162783 #83165E #837216 #16833B
square
#162783 #83165E #837216 #16833B
split-complementary
#162783 #833B16 #5E8316
monochromatic
#04081A #0D174F #162783 #1F37B7 #3650DD

Accessibility & contrast

On white

12.71
#162783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#162783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162783
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162783#FFFFFF#000000##FFFFFF
##1627831.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162783;
/* rgb */ color: rgb(22, 39, 131);
/* oklch */ color: oklch(33.1% 0.154 267.9);
Tailwind
colors: {
  custom: {
    50: '#6961a8',
    500: '#162783',
    950: '#000000',
  },
}
SCSS
$custom: #162783;
$custom-light: #6961a8;
$custom-dark: #000000;
JSON
{
  "hex": "#162783",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 230.642,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33123,
    "c": 0.15411,
    "h": 267.9
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#162783
secondary
#B7A43D
accent
#D23AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #162783

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

Preview Lab → · Contrast checker → · Palette generator →

#162783 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva