#161F6F#161F6F

#161F6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.136 H 270.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#161F6F
RGBrgb(22, 31, 111)
HSLhsl(234, 67%, 26%)
HSVhsv(234, 80%, 44%)
CMYKcmyk(80.2%, 72.1%, 0%, 56.5%)
CIE-LABlab(16.98, 27.14, -47.08)
CIE-LCHlch(16.98, 54.35, 299.96°)
OKLaboklab(29.54% 0.0003 -0.1363)
OKLCHoklch(29.54% 0.136 270.1)
XYZxyz(3.6891, 2.2978, 15.2849)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F6F #6F6616
analogous
#164B6F #161F6F #39166F
triadic
#161F6F #6F161F #1F6F16
tetradic
#161F6F #6F164B #6F6616 #166F39
square
#161F6F #6F164B #6F6616 #166F39
split-complementary
#161F6F #6F3916 #4B6F16
monochromatic
#05071A #0C113C #161F6F #202DA2 #2B3CD5

Accessibility & contrast

On white

14.39
#161F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#161F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F6F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F6F#FFFFFF#000000##FFFFFF
##161F6F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #161f6f;
/* rgb */ color: rgb(22, 31, 111);
/* oklch */ color: oklch(29.5% 0.136 270.1);
Tailwind
colors: {
  custom: {
    50: '#645b99',
    500: '#161f6f',
    950: '#000000',
  },
}
SCSS
$custom: #161f6f;
$custom-light: #645b99;
$custom-dark: #000000;
JSON
{
  "hex": "#161f6f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 233.933,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29535,
    "c": 0.13629,
    "h": 270.1
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#161F6F
secondary
#A59A3C
accent
#D83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #161F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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