#162252#162252

#162252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.089 H 269.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#162252
RGBrgb(22, 34, 82)
HSLhsl(228, 58%, 20%)
HSVhsv(228, 73%, 32%)
CMYKcmyk(73.2%, 58.5%, 0%, 67.8%)
CIE-LABlab(15.08, 13.23, -30.96)
CIE-LCHlch(15.08, 33.67, 293.15°)
OKLaboklab(27.29% -0.0013 -0.089)
OKLCHoklch(27.29% 0.089 269.2)
XYZxyz(2.4254, 1.9236, 8.2245)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162252 #524616
analogous
#164052 #162252 #281652
triadic
#162252 #521622 #225216
tetradic
#162252 #521640 #524616 #165228
square
#162252 #521640 #524616 #165228
split-complementary
#162252 #522816 #405216
monochromatic
#060A18 #090E22 #162252 #233682 #304AB3

Accessibility & contrast

On white

15.16
#162252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#162252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162252
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162252#FFFFFF#000000##FFFFFF
##1622521.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032954
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #162252;
/* rgb */ color: rgb(22, 34, 82);
/* oklch */ color: oklch(27.3% 0.089 269.2);
Tailwind
colors: {
  custom: {
    50: '#5c5c83',
    500: '#162252',
    950: '#000000',
  },
}
SCSS
$custom: #162252;
$custom-light: #5c5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#162252",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 228,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27289,
    "c": 0.08898,
    "h": 269.2
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#162252
secondary
#897A3A
accent
#C247E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #162252

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

Preview Lab → · Contrast checker → · Palette generator →

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