#162571#162571

#162571 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.132 H 268.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#162571
RGBrgb(22, 37, 113)
HSLhsl(230, 67%, 26%)
HSVhsv(230, 81%, 44%)
CMYKcmyk(80.5%, 67.3%, 0%, 55.7%)
CIE-LABlab(18.74, 23.78, -45.49)
CIE-LCHlch(18.74, 51.33, 297.60°)
OKLaboklab(30.88% -0.0035 -0.1316)
OKLCHoklch(30.88% 0.132 268.5)
XYZxyz(3.9720, 2.6855, 15.9286)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162571 #716216
analogous
#165371 #162571 #351671
triadic
#162571 #711625 #257116
tetradic
#162571 #711653 #716216 #167135
square
#162571 #711653 #716216 #167135
split-complementary
#162571 #713516 #537116
monochromatic
#05081A #0C143E #162571 #2036A4 #2C48D6

Accessibility & contrast

On white

13.66
#162571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#162571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162571
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162571#FFFFFF#000000##FFFFFF
##1625711.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162571;
/* rgb */ color: rgb(22, 37, 113);
/* oklch */ color: oklch(30.9% 0.132 268.5);
Tailwind
colors: {
  custom: {
    50: '#645f9b',
    500: '#162571',
    950: '#000000',
  },
}
SCSS
$custom: #162571;
$custom-light: #645f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#162571",
  "rgb": {
    "r": 22,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 230.11,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3088,
    "c": 0.13165,
    "h": 268.5
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#162571
secondary
#A7953C
accent
#CE3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162571

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

Preview Lab → · Contrast checker → · Palette generator →

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