#161B7C#161B7C

#161B7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.158 H 270.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#161B7C
RGBrgb(22, 27, 124)
HSLhsl(237, 70%, 29%)
HSVhsv(237, 82%, 49%)
CMYKcmyk(82.3%, 78.2%, 0%, 51.4%)
CIE-LABlab(17.50, 34.57, -54.58)
CIE-LCHlch(17.50, 64.61, 302.35°)
OKLaboklab(30.34% 0.0003 -0.1581)
OKLCHoklch(30.34% 0.158 270.1)
XYZxyz(4.3597, 2.4092, 19.3001)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B7C #7C7716
analogous
#164E7C #161B7C #44167C
triadic
#161B7C #7C161B #1B7C16
tetradic
#161B7C #7C164E #7C7716 #167C44
square
#161B7C #7C164E #7C7716 #167C44
split-complementary
#161B7C #7C4416 #4E7C16
monochromatic
#05061A #0D1048 #161B7C #1F26B0 #323ADB

Accessibility & contrast

On white

14.17
#161B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#161B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B7C
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B7C#FFFFFF#000000##FFFFFF
##161B7C1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #161b7c;
/* rgb */ color: rgb(22, 27, 124);
/* oklch */ color: oklch(30.3% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#6859a3',
    500: '#161b7c',
    950: '#000000',
  },
}
SCSS
$custom: #161b7c;
$custom-light: #6859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#161b7c",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 237.059,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30342,
    "c": 0.1581,
    "h": 270.1
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#161B7C
secondary
#B1AB3D
accent
#E43BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #161B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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