#161F7E#161F7E

#161F7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.157 H 269.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#161F7E
RGBrgb(22, 31, 126)
HSLhsl(235, 70%, 29%)
HSVhsv(235, 83%, 49%)
CMYKcmyk(82.5%, 75.4%, 0%, 50.6%)
CIE-LABlab(18.61, 32.83, -54.02)
CIE-LCHlch(18.61, 63.22, 301.29°)
OKLaboklab(31.2% -0.0016 -0.1565)
OKLCHoklch(31.2% 0.157 269.4)
XYZxyz(4.5855, 2.6564, 20.0057)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F7E #7E7516
analogous
#16537E #161F7E #41167E
triadic
#161F7E #7E161F #1F7E16
tetradic
#161F7E #7E1653 #7E7516 #167E41
square
#161F7E #7E1653 #7E7516 #167E41
split-complementary
#161F7E #7E4116 #537E16
monochromatic
#05061A #0D124A #161F7E #1F2CB2 #3342DB

Accessibility & contrast

On white

13.71
#161F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#161F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F7E
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F7E#FFFFFF#000000##FFFFFF
##161F7E1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #161f7e;
/* rgb */ color: rgb(22, 31, 126);
/* oklch */ color: oklch(31.2% 0.157 269.4);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#161f7e',
    950: '#000000',
  },
}
SCSS
$custom: #161f7e;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#161f7e",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 234.808,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31199,
    "c": 0.15652,
    "h": 269.4
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#161F7E
secondary
#B3A93D
accent
#DE3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #161F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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