#161F53#161F53

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

Color values

HEX#161F53
RGBrgb(22, 31, 83)
HSLhsl(231, 58%, 21%)
HSVhsv(231, 73%, 33%)
CMYKcmyk(73.5%, 62.7%, 0%, 67.5%)
CIE-LABlab(14.26, 15.89, -32.97)
CIE-LCHlch(14.26, 36.60, 295.73°)
OKLaboklab(26.7% 0.0018 -0.0949)
OKLCHoklch(26.7% 0.095 271.1)
XYZxyz(2.3817, 1.7749, 8.3990)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F53 #534A16
analogous
#163D53 #161F53 #2C1653
triadic
#161F53 #53161F #1F5316
tetradic
#161F53 #53163D #534A16 #16532C
square
#161F53 #53163D #534A16 #16532C
split-complementary
#161F53 #532C16 #3D5316
monochromatic
#060918 #090D23 #161F53 #233183 #3043B4

Accessibility & contrast

On white

15.50
#161F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#161F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F53
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F53#FFFFFF#000000##FFFFFF
##161F531.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161f53;
/* rgb */ color: rgb(22, 31, 83);
/* oklch */ color: oklch(26.7% 0.095 271.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a84',
    500: '#161f53',
    950: '#000000',
  },
}
SCSS
$custom: #161f53;
$custom-light: #5c5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#161f53",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 231.148,
    "s": 58.095,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26699,
    "c": 0.09495,
    "h": 271.1
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#161F53
secondary
#8A7F3A
accent
#CA46E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #161F53

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

Preview Lab → · Contrast checker → · Palette generator →

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