#161F9F#161F9F

#161F9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.198 H 268.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#161F9F
RGBrgb(22, 31, 159)
HSLhsl(236, 76%, 35%)
HSVhsv(236, 86%, 62%)
CMYKcmyk(86.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(22.49, 44.44, -68.15)
CIE-LCHlch(22.49, 81.36, 303.11°)
OKLaboklab(35.08% -0.0068 -0.1975)
OKLCHoklch(35.08% 0.198 268)
XYZxyz(7.0767, 3.6529, 33.1263)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F9F #9F9616
analogous
#16649F #161F9F #51169F
triadic
#161F9F #9F161F #1F9F16
tetradic
#161F9F #9F1664 #9F9616 #169F51
square
#161F9F #9F1664 #9F9616 #169F51
split-complementary
#161F9F #9F5116 #649F16
monochromatic
#070A33 #0F1569 #161F9F #1D29D5 #4A54E6

Accessibility & contrast

On white

12.13
#161F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#161F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F9F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F9F#FFFFFF#000000##FFFFFF
##161F9F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #161f9f;
/* rgb */ color: rgb(22, 31, 159);
/* oklch */ color: oklch(35.1% 0.198 268.0);
Tailwind
colors: {
  custom: {
    50: '#725dbd',
    500: '#161f9f',
    950: '#000000',
  },
}
SCSS
$custom: #161f9f;
$custom-light: #725dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#161f9f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 236.058,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35075,
    "c": 0.19759,
    "h": 268
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#161F9F
secondary
#C7BF4A
accent
#E636F2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #161F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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