#162452#162452

#162452 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.086 H 267.7°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#162452
RGBrgb(22, 36, 82)
HSLhsl(226, 58%, 20%)
HSVhsv(226, 73%, 32%)
CMYKcmyk(73.2%, 56.1%, 0%, 67.8%)
CIE-LABlab(15.70, 11.73, -29.95)
CIE-LCHlch(15.70, 32.17, 291.40°)
OKLaboklab(27.76% -0.0034 -0.086)
OKLCHoklch(27.76% 0.086 267.7)
XYZxyz(2.4842, 2.0413, 8.2441)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162452 #524416
analogous
#164252 #162452 #261652
triadic
#162452 #521624 #245216
tetradic
#162452 #521642 #524416 #165226
square
#162452 #521642 #524416 #165226
split-complementary
#162452 #522616 #425216
monochromatic
#060B18 #090F22 #162452 #233982 #304EB3

Accessibility & contrast

On white

14.91
#162452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#162452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162452
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162452#FFFFFF#000000##FFFFFF
##1624521.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #162452;
/* rgb */ color: rgb(22, 36, 82);
/* oklch */ color: oklch(27.8% 0.086 267.7);
Tailwind
colors: {
  custom: {
    50: '#5c5e83',
    500: '#162452',
    950: '#000000',
  },
}
SCSS
$custom: #162452;
$custom-light: #5c5e83;
$custom-dark: #000000;
JSON
{
  "hex": "#162452",
  "rgb": {
    "r": 22,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 226,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27759,
    "c": 0.08605,
    "h": 267.7
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#162452
secondary
#89773A
accent
#BD47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #162452

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

Preview Lab → · Contrast checker → · Palette generator →

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