#162A6A#162A6A

#162A6A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.115 H 266.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#162A6A
RGBrgb(22, 42, 106)
HSLhsl(226, 66%, 25%)
HSVhsv(226, 79%, 42%)
CMYKcmyk(79.2%, 60.4%, 0%, 58.4%)
CIE-LABlab(19.50, 17.33, -39.71)
CIE-LCHlch(19.50, 43.32, 293.58°)
OKLaboklab(31.25% -0.0071 -0.1146)
OKLCHoklch(31.25% 0.115 266.5)
XYZxyz(3.7594, 2.8667, 13.9881)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A6A #6A5616
analogous
#16546A #162A6A #2C166A
triadic
#162A6A #6A162A #2A6A16
tetradic
#162A6A #6A1654 #6A5616 #166A2C
square
#162A6A #6A1654 #6A5616 #166A2C
split-complementary
#162A6A #6A2C16 #546A16
monochromatic
#050A19 #0B1637 #162A6A #213E9D #2B52CF

Accessibility & contrast

On white

13.35
#162A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#162A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A6A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A6A#FFFFFF#000000##FFFFFF
##162A6A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162a6a;
/* rgb */ color: rgb(22, 42, 106);
/* oklch */ color: oklch(31.2% 0.115 266.5);
Tailwind
colors: {
  custom: {
    50: '#616395',
    500: '#162a6a',
    950: '#000000',
  },
}
SCSS
$custom: #162a6a;
$custom-light: #616395;
$custom-dark: #000000;
JSON
{
  "hex": "#162a6a",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 225.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.11479,
    "h": 266.5
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#162A6A
secondary
#A0883B
accent
#C03FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #162A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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