#161F72#161F72

#161F72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.140 H 270.0°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#161F72
RGBrgb(22, 31, 114)
HSLhsl(234, 68%, 27%)
HSVhsv(234, 81%, 45%)
CMYKcmyk(80.7%, 72.8%, 0%, 55.3%)
CIE-LABlab(17.30, 28.30, -48.50)
CIE-LCHlch(17.30, 56.16, 300.26°)
OKLaboklab(29.86% 0 -0.1404)
OKLCHoklch(29.86% 0.14 270)
XYZxyz(3.8571, 2.3650, 16.1695)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F72 #726916
analogous
#164D72 #161F72 #3B1672
triadic
#161F72 #72161F #1F7216
tetradic
#161F72 #72164D #726916 #16723B
square
#161F72 #72164D #726916 #16723B
split-complementary
#161F72 #723B16 #4D7216
monochromatic
#05071A #0C113F #161F72 #202DA5 #2C3DD6

Accessibility & contrast

On white

14.26
#161F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161F72
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F72#FFFFFF#000000##FFFFFF
##161F721.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #161f72;
/* rgb */ color: rgb(22, 31, 114);
/* oklch */ color: oklch(29.9% 0.140 270.0);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#161f72',
    950: '#000000',
  },
}
SCSS
$custom: #161f72;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#161f72",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 234.13,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29861,
    "c": 0.14043,
    "h": 270
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#161F72
secondary
#A89D3C
accent
#DA3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #161F72

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

Preview Lab → · Contrast checker → · Palette generator →

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