#162A90#162A90

#162A90 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.168 H 267.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#162A90
RGBrgb(22, 42, 144)
HSLhsl(230, 73%, 33%)
HSVhsv(230, 85%, 56%)
CMYKcmyk(84.7%, 70.8%, 0%, 43.5%)
CIE-LABlab(23.13, 32.50, -57.86)
CIE-LCHlch(23.13, 66.36, 299.32°)
OKLaboklab(35.04% -0.0081 -0.1677)
OKLCHoklch(35.04% 0.168 267.2)
XYZxyz(6.1911, 3.8394, 26.7949)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A90 #907C16
analogous
#166790 #162A90 #3F1690
triadic
#162A90 #90162A #2A9016
tetradic
#162A90 #901667 #907C16 #16903F
square
#162A90 #901667 #907C16 #16903F
split-complementary
#162A90 #903F16 #679016
monochromatic
#060B26 #0E1B5B #162A90 #1E39C5 #3F59E2

Accessibility & contrast

On white

11.88
#162A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#162A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A90
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A90#FFFFFF#000000##FFFFFF
##162A901.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162a90;
/* rgb */ color: rgb(22, 42, 144);
/* oklch */ color: oklch(35.0% 0.168 267.2);
Tailwind
colors: {
  custom: {
    50: '#6c63b2',
    500: '#162a90',
    950: '#000000',
  },
}
SCSS
$custom: #162a90;
$custom-light: #6c63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#162a90",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 230.164,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35037,
    "c": 0.16789,
    "h": 267.2
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#162A90
secondary
#C2AD40
accent
#D238F0
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #162A90

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

Preview Lab → · Contrast checker → · Palette generator →

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