#162C7F#162C7F

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

Color values

HEX#162C7F
RGBrgb(22, 44, 127)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 83%, 50%)
CMYKcmyk(82.7%, 65.4%, 0%, 50.2%)
CIE-LABlab(21.96, 24.50, -49.16)
CIE-LCHlch(21.96, 54.92, 296.49°)
OKLaboklab(33.67% -0.0082 -0.1422)
OKLCHoklch(33.67% 0.142 266.7)
XYZxyz(5.0610, 3.5037, 20.4841)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C7F #7F6916
analogous
#16617F #162C7F #35167F
triadic
#162C7F #7F162C #2C7F16
tetradic
#162C7F #7F1661 #7F6916 #167F35
square
#162C7F #7F1661 #7F6916 #167F35
split-complementary
#162C7F #7F3516 #617F16
monochromatic
#05091A #0D1A4B #162C7F #1F3EB3 #3457DC

Accessibility & contrast

On white

12.35
#162C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162C7F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C7F#FFFFFF#000000##FFFFFF
##162C7F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162c7f;
/* rgb */ color: rgb(22, 44, 127);
/* oklch */ color: oklch(33.7% 0.142 266.7);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#162c7f',
    950: '#000000',
  },
}
SCSS
$custom: #162c7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162c7f",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 227.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.14249,
    "h": 266.7
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#162C7F
secondary
#B49B3D
accent
#C83BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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