#162147#162147

#162147 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.072 H 268.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#162147
RGBrgb(22, 33, 71)
HSLhsl(227, 53%, 18%)
HSVhsv(227, 69%, 28%)
CMYKcmyk(69%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.90, 9.42, -25.32)
CIE-LCHlch(13.90, 27.02, 290.40°)
OKLaboklab(26.12% -0.0015 -0.0724)
OKLCHoklch(26.12% 0.072 268.8)
XYZxyz(2.0117, 1.7130, 6.1847)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162147 #473C16
analogous
#163947 #162147 #231647
triadic
#162147 #471621 #214716
tetradic
#162147 #471639 #473C16 #164723
square
#162147 #471639 #473C16 #164723
split-complementary
#162147 #472316 #394716
monochromatic
#070B17 #080B18 #162147 #243776 #334CA4

Accessibility & contrast

On white

15.64
#162147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#162147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162147
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162147#FFFFFF#000000##FFFFFF
##1621471.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#062146
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #162147;
/* rgb */ color: rgb(22, 33, 71);
/* oklch */ color: oklch(26.1% 0.072 268.8);
Tailwind
colors: {
  custom: {
    50: '#595b7a',
    500: '#162147',
    950: '#000000',
  },
}
SCSS
$custom: #162147;
$custom-light: #595b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#162147",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 226.531,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26121,
    "c": 0.07243,
    "h": 268.8
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#162147
secondary
#7E6F3A
accent
#BC4CDC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #162147

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

Preview Lab → · Contrast checker → · Palette generator →

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