#161F6C#161F6C

#161F6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.132 H 270.3°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#161F6C
RGBrgb(22, 31, 108)
HSLhsl(234, 66%, 25%)
HSVhsv(234, 80%, 42%)
CMYKcmyk(79.6%, 71.3%, 0%, 57.6%)
CIE-LABlab(16.66, 25.97, -45.65)
CIE-LCHlch(16.66, 52.52, 299.64°)
OKLaboklab(29.21% 0.0006 -0.1321)
OKLCHoklch(29.21% 0.132 270.3)
XYZxyz(3.5267, 2.2329, 14.4296)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F6C #6C6316
analogous
#164A6C #161F6C #38166C
triadic
#161F6C #6C161F #1F6C16
tetradic
#161F6C #6C164A #6C6316 #166C38
square
#161F6C #6C164A #6C6316 #166C38
split-complementary
#161F6C #6C3816 #4A6C16
monochromatic
#050719 #0C1039 #161F6C #202E9F #2B3CD2

Accessibility & contrast

On white

14.52
#161F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#161F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F6C
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F6C#FFFFFF#000000##FFFFFF
##161F6C1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #161f6c;
/* rgb */ color: rgb(22, 31, 108);
/* oklch */ color: oklch(29.2% 0.132 270.3);
Tailwind
colors: {
  custom: {
    50: '#635a97',
    500: '#161f6c',
    950: '#000000',
  },
}
SCSS
$custom: #161f6c;
$custom-light: #635a97;
$custom-dark: #000000;
JSON
{
  "hex": "#161f6c",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 233.721,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.1321,
    "h": 270.3
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#161F6C
secondary
#A2983C
accent
#D73FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #161F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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