#162A71#162A71

#162A71 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.125 H 266.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#162A71
RGBrgb(22, 42, 113)
HSLhsl(227, 67%, 26%)
HSVhsv(227, 81%, 44%)
CMYKcmyk(80.5%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.12, 20.22, -43.23)
CIE-LCHlch(20.12, 47.73, 295.07°)
OKLaboklab(31.9% -0.0069 -0.1249)
OKLCHoklch(31.9% 0.125 266.9)
XYZxyz(4.1384, 3.0183, 15.9841)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A71 #715D16
analogous
#165871 #162A71 #301671
triadic
#162A71 #71162A #2A7116
tetradic
#162A71 #711658 #715D16 #167130
square
#162A71 #711658 #715D16 #167130
split-complementary
#162A71 #713016 #587116
monochromatic
#050A1A #0C173E #162A71 #203DA4 #2C51D6

Accessibility & contrast

On white

13.09
#162A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A71
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A71#FFFFFF#000000##FFFFFF
##162A711.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162a71;
/* rgb */ color: rgb(22, 42, 113);
/* oklch */ color: oklch(31.9% 0.125 266.9);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#162a71',
    950: '#000000',
  },
}
SCSS
$custom: #162a71;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#162a71",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 226.813,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31901,
    "c": 0.12512,
    "h": 266.9
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#162A71
secondary
#A78F3C
accent
#C43EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A71

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

Preview Lab → · Contrast checker → · Palette generator →

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