#162A83#162A83

#162A83 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.150 H 267.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#162A83
RGBrgb(22, 42, 131)
HSLhsl(229, 71%, 30%)
HSVhsv(229, 83%, 51%)
CMYKcmyk(83.2%, 67.9%, 0%, 48.6%)
CIE-LABlab(21.82, 27.47, -51.91)
CIE-LCHlch(21.82, 58.73, 297.89°)
OKLaboklab(33.68% -0.0072 -0.1503)
OKLCHoklch(33.68% 0.151 267.2)
XYZxyz(5.2541, 3.4646, 21.8601)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A83 #836F16
analogous
#166083 #162A83 #391683
triadic
#162A83 #83162A #2A8316
tetradic
#162A83 #831660 #836F16 #168339
square
#162A83 #831660 #836F16 #168339
split-complementary
#162A83 #833916 #608316
monochromatic
#04081A #0D194F #162A83 #1F3BB7 #3655DD

Accessibility & contrast

On white

12.40
#162A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A83
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A83#FFFFFF#000000##FFFFFF
##162A831.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162a83;
/* rgb */ color: rgb(22, 42, 131);
/* oklch */ color: oklch(33.7% 0.150 267.2);
Tailwind
colors: {
  custom: {
    50: '#6863a8',
    500: '#162a83',
    950: '#000000',
  },
}
SCSS
$custom: #162a83;
$custom-light: #6863a8;
$custom-dark: #000000;
JSON
{
  "hex": "#162a83",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 228.991,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33679,
    "c": 0.1505,
    "h": 267.2
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#162A83
secondary
#B7A13D
accent
#CD3AEE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #162A83

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

Preview Lab → · Contrast checker → · Palette generator →

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