#162287#162287

#162287 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.165 H 268.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#162287
RGBrgb(22, 34, 135)
HSLhsl(234, 72%, 31%)
HSVhsv(234, 84%, 53%)
CMYKcmyk(83.7%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.30, 34.27, -56.93)
CIE-LCHlch(20.30, 66.45, 301.05°)
OKLaboklab(32.7% -0.004 -0.165)
OKLCHoklch(32.7% 0.165 268.6)
XYZxyz(5.2746, 3.0633, 23.2302)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162287 #877B16
analogous
#165A87 #162287 #421687
triadic
#162287 #871622 #228716
tetradic
#162287 #87165A #877B16 #168742
square
#162287 #87165A #877B16 #168742
split-complementary
#162287 #874216 #5A8716
monochromatic
#05071E #0D1552 #162287 #1F2FBC #394ADF

Accessibility & contrast

On white

13.02
#162287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162287
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162287#FFFFFF#000000##FFFFFF
##1622871.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162287;
/* rgb */ color: rgb(22, 34, 135);
/* oklch */ color: oklch(32.7% 0.165 268.6);
Tailwind
colors: {
  custom: {
    50: '#6a5eab',
    500: '#162287',
    950: '#000000',
  },
}
SCSS
$custom: #162287;
$custom-light: #6a5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#162287",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 233.628,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.16502,
    "h": 268.6
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#162287
secondary
#BBAE3E
accent
#DB39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #162287

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

Preview Lab → · Contrast checker → · Palette generator →

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