#162187#162187

#162187 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.166 H 268.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#162187
RGBrgb(22, 33, 135)
HSLhsl(234, 72%, 31%)
HSVhsv(234, 84%, 53%)
CMYKcmyk(83.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.07, 34.89, -57.30)
CIE-LCHlch(20.07, 67.09, 301.34°)
OKLaboklab(32.54% -0.0036 -0.166)
OKLCHoklch(32.54% 0.166 268.8)
XYZxyz(5.2464, 3.0069, 23.2209)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162187 #877C16
analogous
#165987 #162187 #431687
triadic
#162187 #871621 #218716
tetradic
#162187 #871659 #877C16 #168743
square
#162187 #871659 #877C16 #168743
split-complementary
#162187 #874316 #598716
monochromatic
#05071E #0D1452 #162187 #1F2EBC #3949DF

Accessibility & contrast

On white

13.11
#162187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162187
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162187#FFFFFF#000000##FFFFFF
##1621871.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162187;
/* rgb */ color: rgb(22, 33, 135);
/* oklch */ color: oklch(32.5% 0.166 268.8);
Tailwind
colors: {
  custom: {
    50: '#6b5dab',
    500: '#162187',
    950: '#000000',
  },
}
SCSS
$custom: #162187;
$custom-light: #6b5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#162187",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 234.159,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32543,
    "c": 0.16608,
    "h": 268.8
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#162187
secondary
#BBAF3E
accent
#DD39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #162187

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

Preview Lab → · Contrast checker → · Palette generator →

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