#162672#162672

#162672 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.132 H 268.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#162672
RGBrgb(22, 38, 114)
HSLhsl(230, 68%, 27%)
HSVhsv(230, 81%, 45%)
CMYKcmyk(80.7%, 66.7%, 0%, 55.3%)
CIE-LABlab(19.10, 23.48, -45.54)
CIE-LCHlch(19.10, 51.23, 297.28°)
OKLaboklab(31.18% -0.0041 -0.1317)
OKLCHoklch(31.18% 0.132 268.2)
XYZxyz(4.0602, 2.7712, 16.2372)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162672 #726216
analogous
#165472 #162672 #341672
triadic
#162672 #721626 #267216
tetradic
#162672 #721654 #726216 #167234
square
#162672 #721654 #726216 #167234
split-complementary
#162672 #723416 #547216
monochromatic
#05091A #0C153F #162672 #2037A5 #2C4AD6

Accessibility & contrast

On white

13.51
#162672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#162672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162672
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162672#FFFFFF#000000##FFFFFF
##1626721.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162672;
/* rgb */ color: rgb(22, 38, 114);
/* oklch */ color: oklch(31.2% 0.132 268.2);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#162672',
    950: '#000000',
  },
}
SCSS
$custom: #162672;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#162672",
  "rgb": {
    "r": 22,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 229.565,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31179,
    "c": 0.13179,
    "h": 268.2
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#162672
secondary
#A8953C
accent
#CC3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162672

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

Preview Lab → · Contrast checker → · Palette generator →

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