#162A85#162A85

#162A85 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.153 H 267.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#162A85
RGBrgb(22, 42, 133)
HSLhsl(229, 72%, 30%)
HSVhsv(229, 83%, 52%)
CMYKcmyk(83.5%, 68.4%, 0%, 47.8%)
CIE-LABlab(22.01, 28.26, -52.84)
CIE-LCHlch(22.01, 59.92, 298.13°)
OKLaboklab(33.88% -0.0073 -0.153)
OKLCHoklch(33.88% 0.153 267.3)
XYZxyz(5.3910, 3.5193, 22.5809)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A85 #857116
analogous
#166185 #162A85 #391685
triadic
#162A85 #85162A #2A8516
tetradic
#162A85 #851661 #857116 #168539
square
#162A85 #851661 #857116 #168539
split-complementary
#162A85 #853916 #618516
monochromatic
#05091C #0D1950 #162A85 #1F3BBA #3755DE

Accessibility & contrast

On white

12.32
#162A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A85
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A85#FFFFFF#000000##FFFFFF
##162A851.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162a85;
/* rgb */ color: rgb(22, 42, 133);
/* oklch */ color: oklch(33.9% 0.153 267.3);
Tailwind
colors: {
  custom: {
    50: '#6963a9',
    500: '#162a85',
    950: '#000000',
  },
}
SCSS
$custom: #162a85;
$custom-light: #6963a9;
$custom-dark: #000000;
JSON
{
  "hex": "#162a85",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 229.189,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33884,
    "c": 0.15323,
    "h": 267.3
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#162A85
secondary
#B9A33E
accent
#CE39EE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #162A85

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

Preview Lab → · Contrast checker → · Palette generator →

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