#161F81#161F81

#161F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.160 H 269.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#161F81
RGBrgb(22, 31, 129)
HSLhsl(235, 71%, 30%)
HSVhsv(235, 83%, 51%)
CMYKcmyk(82.9%, 76%, 0%, 49.4%)
CIE-LABlab(18.95, 33.94, -55.37)
CIE-LCHlch(18.95, 64.94, 301.51°)
OKLaboklab(31.54% -0.002 -0.1604)
OKLCHoklch(31.54% 0.16 269.3)
XYZxyz(4.7820, 2.7350, 21.0405)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F81 #817816
analogous
#165581 #161F81 #421681
triadic
#161F81 #81161F #1F8116
tetradic
#161F81 #811655 #817816 #168142
square
#161F81 #811655 #817816 #168142
split-complementary
#161F81 #814216 #558116
monochromatic
#04061A #0D124D #161F81 #1F2CB5 #3543DD

Accessibility & contrast

On white

13.57
#161F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#161F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F81
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F81#FFFFFF#000000##FFFFFF
##161F811.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #161f81;
/* rgb */ color: rgb(22, 31, 129);
/* oklch */ color: oklch(31.5% 0.160 269.3);
Tailwind
colors: {
  custom: {
    50: '#695ba7',
    500: '#161f81',
    950: '#000000',
  },
}
SCSS
$custom: #161f81;
$custom-light: #695ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#161f81",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 234.953,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31541,
    "c": 0.16043,
    "h": 269.3
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#161F81
secondary
#B6AB3D
accent
#DF3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #161F81

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

Preview Lab → · Contrast checker → · Palette generator →

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