#162870#162870

#162870 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.126 H 267.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#162870
RGBrgb(22, 40, 112)
HSLhsl(228, 67%, 26%)
HSVhsv(228, 80%, 44%)
CMYKcmyk(80.4%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.46, 21.25, -43.66)
CIE-LCHlch(19.46, 48.55, 295.95°)
OKLaboklab(31.39% -0.0054 -0.1262)
OKLCHoklch(31.39% 0.126 267.5)
XYZxyz(4.0133, 2.8576, 15.6661)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162870 #705E16
analogous
#165570 #162870 #311670
triadic
#162870 #701628 #287016
tetradic
#162870 #701655 #705E16 #167031
square
#162870 #701655 #705E16 #167031
split-complementary
#162870 #703116 #557016
monochromatic
#05091A #0C163D #162870 #203AA3 #2B4DD5

Accessibility & contrast

On white

13.36
#162870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#162870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162870
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162870#FFFFFF#000000##FFFFFF
##1628701.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162870;
/* rgb */ color: rgb(22, 40, 112);
/* oklch */ color: oklch(31.4% 0.126 267.5);
Tailwind
colors: {
  custom: {
    50: '#63619a',
    500: '#162870',
    950: '#000000',
  },
}
SCSS
$custom: #162870;
$custom-light: #63619a;
$custom-dark: #000000;
JSON
{
  "hex": "#162870",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 228,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31388,
    "c": 0.12631,
    "h": 267.5
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#162870
secondary
#A6913C
accent
#C83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162870

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

Preview Lab → · Contrast checker → · Palette generator →

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