#161F63#161F63

#161F63 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.119 H 270.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#161F63
RGBrgb(22, 31, 99)
HSLhsl(233, 64%, 24%)
HSVhsv(233, 78%, 39%)
CMYKcmyk(77.8%, 68.7%, 0%, 61.2%)
CIE-LABlab(15.75, 22.41, -41.24)
CIE-LCHlch(15.75, 46.93, 298.52°)
OKLaboklab(28.27% 0.0014 -0.1192)
OKLCHoklch(28.27% 0.119 270.7)
XYZxyz(3.0722, 2.0511, 12.0359)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F63 #635A16
analogous
#164563 #161F63 #331663
triadic
#161F63 #63161F #1F6316
tetradic
#161F63 #631645 #635A16 #166333
square
#161F63 #631645 #635A16 #166333
split-complementary
#161F63 #633316 #456316
monochromatic
#060819 #0B0F31 #161F63 #212F95 #2C3EC7

Accessibility & contrast

On white

14.89
#161F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#161F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F63
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F63#FFFFFF#000000##FFFFFF
##161F631.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #161f63;
/* rgb */ color: rgb(22, 31, 99);
/* oklch */ color: oklch(28.3% 0.119 270.7);
Tailwind
colors: {
  custom: {
    50: '#615a90',
    500: '#161f63',
    950: '#000000',
  },
}
SCSS
$custom: #161f63;
$custom-light: #615a90;
$custom-dark: #000000;
JSON
{
  "hex": "#161f63",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 232.987,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.11921,
    "h": 270.7
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#161F63
secondary
#9A8F3B
accent
#D341E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040D
muted
#7A797D

Preview Lab

Preview with #161F63

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

Preview Lab → · Contrast checker → · Palette generator →

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