#162A70#162A70

#162A70 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.124 H 266.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#162A70
RGBrgb(22, 42, 112)
HSLhsl(227, 67%, 26%)
HSVhsv(227, 80%, 44%)
CMYKcmyk(80.4%, 62.5%, 0%, 56.1%)
CIE-LABlab(20.03, 19.81, -42.74)
CIE-LCHlch(20.03, 47.11, 294.87°)
OKLaboklab(31.81% -0.0069 -0.1235)
OKLCHoklch(31.81% 0.124 266.8)
XYZxyz(4.0824, 2.9959, 15.6892)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A70 #705C16
analogous
#165770 #162A70 #2F1670
triadic
#162A70 #70162A #2A7016
tetradic
#162A70 #701657 #705C16 #16702F
square
#162A70 #701657 #705C16 #16702F
split-complementary
#162A70 #702F16 #577016
monochromatic
#050A1A #0C173D #162A70 #203DA3 #2B51D5

Accessibility & contrast

On white

13.13
#162A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A70
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A70#FFFFFF#000000##FFFFFF
##162A701.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162a70;
/* rgb */ color: rgb(22, 42, 112);
/* oklch */ color: oklch(31.8% 0.124 266.8);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#162a70',
    950: '#000000',
  },
}
SCSS
$custom: #162a70;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#162a70",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 226.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31807,
    "c": 0.12365,
    "h": 266.8
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#162A70
secondary
#A68E3C
accent
#C43EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A70

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

Preview Lab → · Contrast checker → · Palette generator →

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