#161B78#161B78

#161B78 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.153 H 270.4°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#161B78
RGBrgb(22, 27, 120)
HSLhsl(237, 69%, 28%)
HSVhsv(237, 82%, 47%)
CMYKcmyk(81.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(17.04, 33.12, -52.80)
CIE-LCHlch(17.04, 62.33, 302.10°)
OKLaboklab(29.87% 0.001 -0.1529)
OKLCHoklch(29.87% 0.153 270.4)
XYZxyz(4.1118, 2.3100, 17.9948)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B78 #787316
analogous
#164C78 #161B78 #421678
triadic
#161B78 #78161B #1B7816
tetradic
#161B78 #78164C #787316 #167842
square
#161B78 #78164C #787316 #167842
split-complementary
#161B78 #784216 #4C7816
monochromatic
#05061A #0D0F44 #161B78 #1F27AC #2F38D9

Accessibility & contrast

On white

14.36
#161B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#161B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B78
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B78#FFFFFF#000000##FFFFFF
##161B781.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #161b78;
/* rgb */ color: rgb(22, 27, 120);
/* oklch */ color: oklch(29.9% 0.153 270.4);
Tailwind
colors: {
  custom: {
    50: '#6758a0',
    500: '#161b78',
    950: '#000000',
  },
}
SCSS
$custom: #161b78;
$custom-light: #6758a0;
$custom-dark: #000000;
JSON
{
  "hex": "#161b78",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 236.939,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29874,
    "c": 0.15291,
    "h": 270.4
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#161B78
secondary
#ADA83C
accent
#E33CEC
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #161B78

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

Preview Lab → · Contrast checker → · Palette generator →

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