#162970#162970

#162970 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.125 H 267.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#162970
RGBrgb(22, 41, 112)
HSLhsl(227, 67%, 26%)
HSVhsv(227, 80%, 44%)
CMYKcmyk(80.4%, 63.4%, 0%, 56.1%)
CIE-LABlab(19.74, 20.53, -43.20)
CIE-LCHlch(19.74, 47.83, 295.42°)
OKLaboklab(31.6% -0.0062 -0.1248)
OKLCHoklch(31.6% 0.125 267.2)
XYZxyz(4.0474, 2.9258, 15.6775)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162970 #705D16
analogous
#165670 #162970 #301670
triadic
#162970 #701629 #297016
tetradic
#162970 #701656 #705D16 #167030
square
#162970 #701656 #705D16 #167030
split-complementary
#162970 #703016 #567016
monochromatic
#05091A #0C163D #162970 #203CA3 #2B4FD5

Accessibility & contrast

On white

13.25
#162970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162970
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162970#FFFFFF#000000##FFFFFF
##1629701.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162970;
/* rgb */ color: rgb(22, 41, 112);
/* oklch */ color: oklch(31.6% 0.125 267.2);
Tailwind
colors: {
  custom: {
    50: '#63629a',
    500: '#162970',
    950: '#000000',
  },
}
SCSS
$custom: #162970;
$custom-light: #63629a;
$custom-dark: #000000;
JSON
{
  "hex": "#162970",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 227.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31596,
    "c": 0.12498,
    "h": 267.2
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#162970
secondary
#A6903C
accent
#C63EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162970

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

Preview Lab → · Contrast checker → · Palette generator →

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