#161F8F#161F8F

#161F8F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.178 H 268.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#161F8F
RGBrgb(22, 31, 143)
HSLhsl(236, 73%, 32%)
HSVhsv(236, 85%, 56%)
CMYKcmyk(84.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(20.57, 38.97, -61.48)
CIE-LCHlch(20.57, 72.78, 302.37°)
OKLaboklab(33.17% -0.0042 -0.1781)
OKLCHoklch(33.17% 0.178 268.7)
XYZxyz(5.7771, 3.1330, 26.2815)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F8F #8F8616
analogous
#165C8F #161F8F #49168F
triadic
#161F8F #8F161F #1F8F16
tetradic
#161F8F #8F165C #8F8616 #168F49
square
#161F8F #8F165C #8F8616 #168F49
split-complementary
#161F8F #8F4916 #5C8F16
monochromatic
#060825 #0E145A #161F8F #1E2AC4 #3E4AE1

Accessibility & contrast

On white

12.91
#161F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#161F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F8F
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F8F#FFFFFF#000000##FFFFFF
##161F8F1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #161f8f;
/* rgb */ color: rgb(22, 31, 143);
/* oklch */ color: oklch(33.2% 0.178 268.7);
Tailwind
colors: {
  custom: {
    50: '#6d5cb1',
    500: '#161f8f',
    950: '#000000',
  },
}
SCSS
$custom: #161f8f;
$custom-light: #6d5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#161f8f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 235.537,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.17819,
    "h": 268.7
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#161F8F
secondary
#C1B83F
accent
#E238F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #161F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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