#162A7F#162A7F

#162A7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.145 H 267.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#162A7F
RGBrgb(22, 42, 127)
HSLhsl(229, 70%, 29%)
HSVhsv(229, 83%, 50%)
CMYKcmyk(82.7%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.42, 25.89, -50.03)
CIE-LCHlch(21.42, 56.33, 297.36°)
OKLaboklab(33.27% -0.007 -0.1448)
OKLCHoklch(33.27% 0.145 267.2)
XYZxyz(4.9883, 3.3582, 20.4599)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A7F #7F6B16
analogous
#165F7F #162A7F #36167F
triadic
#162A7F #7F162A #2A7F16
tetradic
#162A7F #7F165F #7F6B16 #167F36
square
#162A7F #7F165F #7F6B16 #167F36
split-complementary
#162A7F #7F3616 #5F7F16
monochromatic
#05091A #0D194B #162A7F #1F3BB3 #3454DC

Accessibility & contrast

On white

12.56
#162A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A7F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A7F#FFFFFF#000000##FFFFFF
##162A7F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162a7f;
/* rgb */ color: rgb(22, 42, 127);
/* oklch */ color: oklch(33.3% 0.145 267.2);
Tailwind
colors: {
  custom: {
    50: '#6763a5',
    500: '#162a7f',
    950: '#000000',
  },
}
SCSS
$custom: #162a7f;
$custom-light: #6763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162a7f",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 228.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33272,
    "c": 0.145,
    "h": 267.2
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#162A7F
secondary
#B49D3D
accent
#CB3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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