#162D74#162D74

#162D74 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.125 H 265.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#162D74
RGBrgb(22, 45, 116)
HSLhsl(225, 68%, 27%)
HSVhsv(225, 81%, 45%)
CMYKcmyk(81%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.24, 19.31, -43.33)
CIE-LCHlch(21.24, 47.44, 294.01°)
OKLaboklab(32.82% -0.009 -0.1252)
OKLCHoklch(32.82% 0.125 265.9)
XYZxyz(4.4205, 3.3078, 16.9251)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D74 #745D16
analogous
#165C74 #162D74 #2E1674
triadic
#162D74 #74162D #2D7416
tetradic
#162D74 #74165C #745D16 #16742E
square
#162D74 #74165C #745D16 #16742E
split-complementary
#162D74 #742E16 #5C7416
monochromatic
#050A1A #0C1941 #162D74 #2041A7 #2D57D7

Accessibility & contrast

On white

12.64
#162D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#162D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D74
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D74#FFFFFF#000000##FFFFFF
##162D741.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162d74;
/* rgb */ color: rgb(22, 45, 116);
/* oklch */ color: oklch(32.8% 0.125 265.9);
Tailwind
colors: {
  custom: {
    50: '#64659d',
    500: '#162d74',
    950: '#000000',
  },
}
SCSS
$custom: #162d74;
$custom-light: #64659d;
$custom-dark: #000000;
JSON
{
  "hex": "#162d74",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 225.319,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3282,
    "c": 0.12549,
    "h": 265.9
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#162D74
secondary
#AA8F3C
accent
#C03DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162D74

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

Preview Lab → · Contrast checker → · Palette generator →

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