#161F41#161F41

#161F41 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.065 H 270.0°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#161F41
RGBrgb(22, 31, 65)
HSLhsl(227, 49%, 17%)
HSVhsv(227, 66%, 25%)
CMYKcmyk(66.2%, 52.3%, 0%, 74.5%)
CIE-LABlab(12.81, 8.46, -22.90)
CIE-LCHlch(12.81, 24.41, 290.28°)
OKLaboklab(25.15% 0 -0.0653)
OKLCHoklch(25.15% 0.065 270)
XYZxyz(1.7747, 1.5321, 5.2022)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F41 #413816
analogous
#163541 #161F41 #231641
triadic
#161F41 #41161F #1F4116
tetradic
#161F41 #411635 #413816 #164123
square
#161F41 #411635 #413816 #164123
split-complementary
#161F41 #412316 #354116
monochromatic
#080B17 #080B17 #161F41 #25356F #354B9C

Accessibility & contrast

On white

16.07
#161F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#161F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F41
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F41#FFFFFF#000000##FFFFFF
##161F411.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2342
Deuteranopia (green-blind)
#091F40
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #161f41;
/* rgb */ color: rgb(22, 31, 65);
/* oklch */ color: oklch(25.1% 0.065 270.0);
Tailwind
colors: {
  custom: {
    50: '#585a76',
    500: '#161f41',
    950: '#000000',
  },
}
SCSS
$custom: #161f41;
$custom-light: #585a76;
$custom-dark: #000000;
JSON
{
  "hex": "#161f41",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 227.442,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25146,
    "c": 0.06532,
    "h": 270
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#161F41
secondary
#786B3A
accent
#BC4FD9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #161F41

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

Preview Lab → · Contrast checker → · Palette generator →

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