#161F52#161F52

#161F52 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.093 H 271.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#161F52
RGBrgb(22, 31, 82)
HSLhsl(231, 58%, 20%)
HSVhsv(231, 73%, 32%)
CMYKcmyk(73.2%, 62.2%, 0%, 67.8%)
CIE-LABlab(14.17, 15.48, -32.43)
CIE-LCHlch(14.17, 35.93, 295.51°)
OKLaboklab(26.61% 0.0017 -0.0933)
OKLCHoklch(26.61% 0.093 271.1)
XYZxyz(2.3433, 1.7595, 8.1971)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F52 #524916
analogous
#163D52 #161F52 #2B1652
triadic
#161F52 #52161F #1F5216
tetradic
#161F52 #52163D #524916 #16522B
square
#161F52 #52163D #524916 #16522B
split-complementary
#161F52 #522B16 #3D5216
monochromatic
#060918 #090D22 #161F52 #233182 #3043B3

Accessibility & contrast

On white

15.53
#161F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#161F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F52
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F52#FFFFFF#000000##FFFFFF
##161F521.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161f52;
/* rgb */ color: rgb(22, 31, 82);
/* oklch */ color: oklch(26.6% 0.093 271.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a83',
    500: '#161f52',
    950: '#000000',
  },
}
SCSS
$custom: #161f52;
$custom-light: #5c5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#161f52",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 231,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26607,
    "c": 0.09337,
    "h": 271.1
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#161F52
secondary
#897E3A
accent
#CA47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #161F52

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

Preview Lab → · Contrast checker → · Palette generator →

#161F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva