#161F62#161F62

#161F62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.2% C 0.118 H 270.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#161F62
RGBrgb(22, 31, 98)
HSLhsl(233, 63%, 24%)
HSVhsv(233, 78%, 38%)
CMYKcmyk(77.6%, 68.4%, 0%, 61.6%)
CIE-LABlab(15.65, 22.00, -40.74)
CIE-LCHlch(15.65, 46.30, 298.38°)
OKLaboklab(28.17% 0.0014 -0.1177)
OKLCHoklch(28.17% 0.118 270.7)
XYZxyz(3.0247, 2.0321, 11.7857)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F62 #625916
analogous
#164562 #161F62 #331662
triadic
#161F62 #62161F #1F6216
tetradic
#161F62 #621645 #625916 #166233
square
#161F62 #621645 #625916 #166233
split-complementary
#161F62 #623316 #456216
monochromatic
#060819 #0B0F30 #161F62 #212F94 #2C3FC6

Accessibility & contrast

On white

14.93
#161F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161F62
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F62#FFFFFF#000000##FFFFFF
##161F621.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #161f62;
/* rgb */ color: rgb(22, 31, 98);
/* oklch */ color: oklch(28.2% 0.118 270.7);
Tailwind
colors: {
  custom: {
    50: '#605a8f',
    500: '#161f62',
    950: '#000000',
  },
}
SCSS
$custom: #161f62;
$custom-light: #605a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#161f62",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 232.895,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28166,
    "c": 0.11775,
    "h": 270.7
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#161F62
secondary
#998E3B
accent
#D341E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #161F62

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

Preview Lab → · Contrast checker → · Palette generator →

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