#162F89#162F89

#162F89 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.153 H 266.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#162F89
RGBrgb(22, 47, 137)
HSLhsl(227, 72%, 31%)
HSVhsv(227, 84%, 54%)
CMYKcmyk(83.9%, 65.7%, 0%, 46.3%)
CIE-LABlab(23.70, 26.41, -52.58)
CIE-LCHlch(23.70, 58.84, 296.67°)
OKLaboklab(35.24% -0.0101 -0.1522)
OKLCHoklch(35.24% 0.153 266.2)
XYZxyz(5.8612, 4.0090, 24.1270)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F89 #897016
analogous
#166889 #162F89 #371689
triadic
#162F89 #89162F #2F8916
tetradic
#162F89 #891668 #897016 #168937
square
#162F89 #891668 #897016 #168937
split-complementary
#162F89 #893716 #688916
monochromatic
#050B20 #0E1D54 #162F89 #1E41BE #3A5EDF

Accessibility & contrast

On white

11.65
#162F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#162F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F89
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F89#FFFFFF#000000##FFFFFF
##162F891.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #162f89;
/* rgb */ color: rgb(22, 47, 137);
/* oklch */ color: oklch(35.2% 0.153 266.2);
Tailwind
colors: {
  custom: {
    50: '#6a67ac',
    500: '#162f89',
    950: '#000000',
  },
}
SCSS
$custom: #162f89;
$custom-light: #6a67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162f89",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 226.957,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35242,
    "c": 0.15257,
    "h": 266.2
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#162F89
secondary
#BDA13E
accent
#C739EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #162F89

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

Preview Lab → · Contrast checker → · Palette generator →

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