#162F9E#162F9E

#162F9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.180 H 266.5°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#162F9E
RGBrgb(22, 47, 158)
HSLhsl(229, 76%, 35%)
HSVhsv(229, 86%, 62%)
CMYKcmyk(86.1%, 70.3%, 0%, 38%)
CIE-LABlab(25.78, 34.55, -62.11)
CIE-LCHlch(25.78, 71.07, 299.08°)
OKLaboklab(37.39% -0.0111 -0.18)
OKLCHoklch(37.39% 0.18 266.5)
XYZxyz(7.5168, 4.6713, 32.8466)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F9E #9E8516
analogous
#16739E #162F9E #41169E
triadic
#162F9E #9E162F #2F9E16
tetradic
#162F9E #9E1673 #9E8516 #169E41
square
#162F9E #9E1673 #9E8516 #169E41
split-complementary
#162F9E #9E4116 #739E16
monochromatic
#070F33 #0F1F68 #162F9E #1D3FD4 #4966E6

Accessibility & contrast

On white

10.86
#162F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#162F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F9E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F9E#FFFFFF#000000##FFFFFF
##162F9E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #162f9e;
/* rgb */ color: rgb(22, 47, 158);
/* oklch */ color: oklch(37.4% 0.180 266.5);
Tailwind
colors: {
  custom: {
    50: '#7067bc',
    500: '#162f9e',
    950: '#000000',
  },
}
SCSS
$custom: #162f9e;
$custom-light: #7067bc;
$custom-dark: #000000;
JSON
{
  "hex": "#162f9e",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 228.971,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3739,
    "c": 0.18038,
    "h": 266.5
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#162F9E
secondary
#C7B049
accent
#CF36F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #162F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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