#162671#162671

#162671 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.130 H 268.2°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#162671
RGBrgb(22, 38, 113)
HSLhsl(229, 67%, 26%)
HSVhsv(229, 81%, 44%)
CMYKcmyk(80.5%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.01, 23.08, -45.05)
CIE-LCHlch(19.01, 50.61, 297.12°)
OKLaboklab(31.08% -0.0041 -0.1303)
OKLCHoklch(31.08% 0.13 268.2)
XYZxyz(4.0036, 2.7486, 15.9391)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162671 #716116
analogous
#165471 #162671 #341671
triadic
#162671 #711626 #267116
tetradic
#162671 #711654 #716116 #167134
square
#162671 #711654 #716116 #167134
split-complementary
#162671 #713416 #547116
monochromatic
#05091A #0C153E #162671 #2037A4 #2C4AD6

Accessibility & contrast

On white

13.55
#162671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#162671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162671
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162671#FFFFFF#000000##FFFFFF
##1626711.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162671;
/* rgb */ color: rgb(22, 38, 113);
/* oklch */ color: oklch(31.1% 0.130 268.2);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#162671',
    950: '#000000',
  },
}
SCSS
$custom: #162671;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#162671",
  "rgb": {
    "r": 22,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 229.451,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31079,
    "c": 0.13035,
    "h": 268.2
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#162671
secondary
#A7943C
accent
#CC3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162671

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

Preview Lab → · Contrast checker → · Palette generator →

#162671 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva