#162271#162271

#162271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.135 H 269.3°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#162271
RGBrgb(22, 34, 113)
HSLhsl(232, 67%, 26%)
HSVhsv(232, 81%, 44%)
CMYKcmyk(80.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(17.95, 25.87, -46.79)
CIE-LCHlch(17.95, 53.46, 298.94°)
OKLaboklab(30.3% -0.0016 -0.1354)
OKLCHoklch(30.3% 0.135 269.3)
XYZxyz(3.8825, 2.5065, 15.8988)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162271 #716516
analogous
#165071 #162271 #381671
triadic
#162271 #711622 #227116
tetradic
#162271 #711650 #716516 #167138
square
#162271 #711650 #716516 #167138
split-complementary
#162271 #713816 #507116
monochromatic
#05081A #0C133E #162271 #2031A4 #2C42D6

Accessibility & contrast

On white

13.99
#162271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#162271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162271
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162271#FFFFFF#000000##FFFFFF
##1622711.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162271;
/* rgb */ color: rgb(22, 34, 113);
/* oklch */ color: oklch(30.3% 0.135 269.3);
Tailwind
colors: {
  custom: {
    50: '#645d9b',
    500: '#162271',
    950: '#000000',
  },
}
SCSS
$custom: #162271;
$custom-light: #645d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#162271",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 232.088,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.13542,
    "h": 269.3
  },
  "luminance": 0.02507
}

Semantic roles & 50–950 ramp

primary
#162271
secondary
#A7993C
accent
#D43EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162271

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

Preview Lab → · Contrast checker → · Palette generator →

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