#162F7F#162F7F

#162F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.139 H 265.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#162F7F
RGBrgb(22, 47, 127)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 83%, 50%)
CMYKcmyk(82.7%, 63%, 0%, 50.2%)
CIE-LABlab(22.78, 22.39, -47.82)
CIE-LCHlch(22.78, 52.80, 295.09°)
OKLaboklab(34.27% -0.0101 -0.1383)
OKLCHoklch(34.27% 0.139 265.8)
XYZxyz(5.1768, 3.7353, 20.5227)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7F #7F6616
analogous
#16647F #162F7F #31167F
triadic
#162F7F #7F162F #2F7F16
tetradic
#162F7F #7F1664 #7F6616 #167F31
square
#162F7F #7F1664 #7F6616 #167F31
split-complementary
#162F7F #7F3116 #647F16
monochromatic
#050A1A #0D1C4B #162F7F #1F42B3 #345CDC

Accessibility & contrast

On white

12.02
#162F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#162F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F7F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F7F#FFFFFF#000000##FFFFFF
##162F7F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162f7f;
/* rgb */ color: rgb(22, 47, 127);
/* oklch */ color: oklch(34.3% 0.139 265.8);
Tailwind
colors: {
  custom: {
    50: '#6767a5',
    500: '#162f7f',
    950: '#000000',
  },
}
SCSS
$custom: #162f7f;
$custom-light: #6767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7f",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 225.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34272,
    "c": 0.13866,
    "h": 265.8
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#162F7F
secondary
#B4983D
accent
#C33BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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