#161F71#161F71

#161F71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.139 H 270.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#161F71
RGBrgb(22, 31, 113)
HSLhsl(234, 67%, 26%)
HSVhsv(234, 81%, 44%)
CMYKcmyk(80.5%, 72.6%, 0%, 55.7%)
CIE-LABlab(17.19, 27.92, -48.03)
CIE-LCHlch(17.19, 55.55, 300.16°)
OKLaboklab(29.75% 0.0001 -0.1391)
OKLCHoklch(29.75% 0.139 270)
XYZxyz(3.8005, 2.3424, 15.8714)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F71 #716816
analogous
#164D71 #161F71 #3B1671
triadic
#161F71 #71161F #1F7116
tetradic
#161F71 #71164D #716816 #16713B
square
#161F71 #71164D #716816 #16713B
split-complementary
#161F71 #713B16 #4D7116
monochromatic
#05071A #0C113E #161F71 #202DA4 #2C3CD6

Accessibility & contrast

On white

14.30
#161F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#161F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F71
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F71#FFFFFF#000000##FFFFFF
##161F711.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #161f71;
/* rgb */ color: rgb(22, 31, 113);
/* oklch */ color: oklch(29.8% 0.139 270.0);
Tailwind
colors: {
  custom: {
    50: '#645b9b',
    500: '#161f71',
    950: '#000000',
  },
}
SCSS
$custom: #161f71;
$custom-light: #645b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#161f71",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 234.066,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.13906,
    "h": 270
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#161F71
secondary
#A79C3C
accent
#D93EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #161F71

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

Preview Lab → · Contrast checker → · Palette generator →

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