#161281#161281

#161281 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.172 H 270.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#161281
RGBrgb(22, 18, 129)
HSLhsl(242, 76%, 29%)
HSVhsv(242, 86%, 51%)
CMYKcmyk(82.9%, 86%, 0%, 49.4%)
CIE-LABlab(16.44, 41.15, -59.53)
CIE-LCHlch(16.44, 72.37, 304.66°)
OKLaboklab(29.78% 0.0018 -0.1723)
OKLCHoklch(29.78% 0.172 270.6)
XYZxyz(4.5083, 2.1876, 20.9493)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161281 #7D8112
analogous
#124681 #161281 #4E1281
triadic
#161281 #811612 #128116
tetradic
#161281 #811246 #7D8112 #12814E
square
#161281 #811246 #7D8112 #12814E
split-complementary
#161281 #814E12 #468112
monochromatic
#05041B #0D0B4B #161281 #1F19B7 #322CE2

Accessibility & contrast

On white

14.61
#161281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#161281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161281
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161281#FFFFFF#000000##FFFFFF
##1612811.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E84
Deuteranopia (green-blind)
#00237F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #161281;
/* rgb */ color: rgb(22, 18, 129);
/* oklch */ color: oklch(29.8% 0.172 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a54a7',
    500: '#161281',
    950: '#000000',
  },
}
SCSS
$custom: #161281;
$custom-light: #6a54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#161281",
  "rgb": {
    "r": 22,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 242.162,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.2978,
    "c": 0.17228,
    "h": 270.6
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#161281
secondary
#B2B738
accent
#F236EB
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #161281

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

Preview Lab → · Contrast checker → · Palette generator →

#161281 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva