#161F8E#161F8E

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

Color values

HEX#161F8E
RGBrgb(22, 31, 142)
HSLhsl(236, 73%, 32%)
HSVhsv(236, 85%, 56%)
CMYKcmyk(84.5%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.45, 38.61, -61.05)
CIE-LCHlch(20.45, 72.23, 302.31°)
OKLaboklab(33.05% -0.004 -0.1769)
OKLCHoklch(33.05% 0.177 268.7)
XYZxyz(5.7017, 3.1029, 25.8843)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F8E #8E8516
analogous
#165B8E #161F8E #49168E
triadic
#161F8E #8E161F #1F8E16
tetradic
#161F8E #8E165B #8E8516 #168E49
square
#161F8E #8E165B #8E8516 #168E49
split-complementary
#161F8E #8E4916 #5B8E16
monochromatic
#060824 #0E1359 #161F8E #1E2BC3 #3D4AE1

Accessibility & contrast

On white

12.96
#161F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#161F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F8E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F8E#FFFFFF#000000##FFFFFF
##161F8E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #161f8e;
/* rgb */ color: rgb(22, 31, 142);
/* oklch */ color: oklch(33.1% 0.177 268.7);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#161f8e',
    950: '#000000',
  },
}
SCSS
$custom: #161f8e;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#161f8e",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 235.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3305,
    "c": 0.17695,
    "h": 268.7
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #161F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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