#162F8F#162F8F

#162F8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.161 H 266.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#162F8F
RGBrgb(22, 47, 143)
HSLhsl(228, 73%, 32%)
HSVhsv(228, 85%, 56%)
CMYKcmyk(84.6%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.28, 28.78, -55.36)
CIE-LCHlch(24.28, 62.39, 297.47°)
OKLaboklab(35.84% -0.0103 -0.1604)
OKLCHoklch(35.84% 0.161 266.3)
XYZxyz(6.3036, 4.1860, 26.4570)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F8F #8F7616
analogous
#166C8F #162F8F #39168F
triadic
#162F8F #8F162F #2F8F16
tetradic
#162F8F #8F166C #8F7616 #168F39
square
#162F8F #8F166C #8F7616 #168F39
split-complementary
#162F8F #8F3916 #6C8F16
monochromatic
#060C25 #0E1E5A #162F8F #1E40C4 #3E60E1

Accessibility & contrast

On white

11.43
#162F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#162F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F8F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F8F#FFFFFF#000000##FFFFFF
##162F8F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #162f8f;
/* rgb */ color: rgb(22, 47, 143);
/* oklch */ color: oklch(35.8% 0.161 266.3);
Tailwind
colors: {
  custom: {
    50: '#6b67b1',
    500: '#162f8f',
    950: '#000000',
  },
}
SCSS
$custom: #162f8f;
$custom-light: #6b67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#162f8f",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 227.603,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35842,
    "c": 0.1607,
    "h": 266.3
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#162F8F
secondary
#C1A73F
accent
#CA38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #162F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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