#162A74#162A74

#162A74 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.129 H 267.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#162A74
RGBrgb(22, 42, 116)
HSLhsl(227, 68%, 27%)
HSVhsv(227, 81%, 45%)
CMYKcmyk(81%, 63.8%, 0%, 54.5%)
CIE-LABlab(20.39, 21.45, -44.72)
CIE-LCHlch(20.39, 49.60, 295.63°)
OKLaboklab(32.19% -0.0068 -0.1293)
OKLCHoklch(32.19% 0.129 267)
XYZxyz(4.3101, 3.0870, 16.8883)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A74 #746016
analogous
#165974 #162A74 #311674
triadic
#162A74 #74162A #2A7416
tetradic
#162A74 #741659 #746016 #167431
square
#162A74 #741659 #746016 #167431
split-complementary
#162A74 #743116 #597416
monochromatic
#05091A #0C1741 #162A74 #203DA7 #2D51D7

Accessibility & contrast

On white

12.98
#162A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A74
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A74#FFFFFF#000000##FFFFFF
##162A741.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162a74;
/* rgb */ color: rgb(22, 42, 116);
/* oklch */ color: oklch(32.2% 0.129 267.0);
Tailwind
colors: {
  custom: {
    50: '#64639d',
    500: '#162a74',
    950: '#000000',
  },
}
SCSS
$custom: #162a74;
$custom-light: #64639d;
$custom-dark: #000000;
JSON
{
  "hex": "#162a74",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 227.234,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32188,
    "c": 0.12946,
    "h": 267
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#162A74
secondary
#AA923C
accent
#C63DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A74

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

Preview Lab → · Contrast checker → · Palette generator →

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