#161B87#161B87

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

Color values

HEX#161B87
RGBrgb(22, 27, 135)
HSLhsl(237, 72%, 31%)
HSVhsv(237, 84%, 53%)
CMYKcmyk(83.7%, 80%, 0%, 47.1%)
CIE-LABlab(18.81, 38.46, -59.38)
CIE-LCHlch(18.81, 70.75, 302.93°)
OKLaboklab(31.65% -0.0017 -0.172)
OKLCHoklch(31.65% 0.172 269.4)
XYZxyz(5.0945, 2.7031, 23.1702)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B87 #878216
analogous
#165387 #161B87 #491687
triadic
#161B87 #87161B #1B8716
tetradic
#161B87 #871653 #878216 #168749
square
#161B87 #871653 #878216 #168749
split-complementary
#161B87 #874916 #538716
monochromatic
#05061E #0D1052 #161B87 #1F26BC #3940DF

Accessibility & contrast

On white

13.63
#161B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#161B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B87
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B87#FFFFFF#000000##FFFFFF
##161B871.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #161b87;
/* rgb */ color: rgb(22, 27, 135);
/* oklch */ color: oklch(31.7% 0.172 269.4);
Tailwind
colors: {
  custom: {
    50: '#6b59ab',
    500: '#161b87',
    950: '#000000',
  },
}
SCSS
$custom: #161b87;
$custom-light: #6b59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#161b87",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 237.345,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31651,
    "c": 0.17203,
    "h": 269.4
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#161B87
secondary
#BBB63E
accent
#E739EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #161B87

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

Preview Lab → · Contrast checker → · Palette generator →

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