#162B7F#162B7F

#162B7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.144 H 267.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#162B7F
RGBrgb(22, 43, 127)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 83%, 50%)
CMYKcmyk(82.7%, 66.1%, 0%, 50.2%)
CIE-LABlab(21.69, 25.19, -49.59)
CIE-LCHlch(21.69, 55.63, 296.93°)
OKLaboklab(33.47% -0.0076 -0.1435)
OKLCHoklch(33.47% 0.144 267)
XYZxyz(5.0242, 3.4300, 20.4718)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B7F #7F6A16
analogous
#16607F #162B7F #36167F
triadic
#162B7F #7F162B #2B7F16
tetradic
#162B7F #7F1660 #7F6A16 #167F36
square
#162B7F #7F1660 #7F6A16 #167F36
split-complementary
#162B7F #7F3616 #607F16
monochromatic
#05091A #0D194B #162B7F #1F3DB3 #3455DC

Accessibility & contrast

On white

12.45
#162B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B7F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B7F#FFFFFF#000000##FFFFFF
##162B7F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162b7f;
/* rgb */ color: rgb(22, 43, 127);
/* oklch */ color: oklch(33.5% 0.144 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#162b7f',
    950: '#000000',
  },
}
SCSS
$custom: #162b7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162b7f",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 228,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.14375,
    "h": 267
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#162B7F
secondary
#B49C3D
accent
#CA3BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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