#162A7E#162A7E

#162A7E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.144 H 267.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#162A7E
RGBrgb(22, 42, 126)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 83%, 49%)
CMYKcmyk(82.5%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.33, 25.49, -49.55)
CIE-LCHlch(21.33, 55.72, 297.22°)
OKLaboklab(33.17% -0.007 -0.1434)
OKLCHoklch(33.17% 0.144 267.2)
XYZxyz(4.9234, 3.3323, 20.1183)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A7E #7E6A16
analogous
#165E7E #162A7E #36167E
triadic
#162A7E #7E162A #2A7E16
tetradic
#162A7E #7E165E #7E6A16 #167E36
square
#162A7E #7E165E #7E6A16 #167E36
split-complementary
#162A7E #7E3616 #5E7E16
monochromatic
#05091A #0D194A #162A7E #1F3BB2 #3353DB

Accessibility & contrast

On white

12.60
#162A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A7E
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A7E#FFFFFF#000000##FFFFFF
##162A7E1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162a7e;
/* rgb */ color: rgb(22, 42, 126);
/* oklch */ color: oklch(33.2% 0.144 267.2);
Tailwind
colors: {
  custom: {
    50: '#6763a4',
    500: '#162a7e',
    950: '#000000',
  },
}
SCSS
$custom: #162a7e;
$custom-light: #6763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162a7e",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 228.462,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.14361,
    "h": 267.2
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#162A7E
secondary
#B39C3D
accent
#CB3BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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