#161271#161271

#161271 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.153 H 272.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#161271
RGBrgb(22, 18, 113)
HSLhsl(243, 73%, 26%)
HSVhsv(243, 84%, 44%)
CMYKcmyk(80.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.37, 35.85, -52.69)
CIE-LCHlch(14.37, 63.73, 304.23°)
OKLaboklab(27.75% 0.0057 -0.1525)
OKLCHoklch(27.75% 0.153 272.2)
XYZxyz(3.5268, 1.7951, 15.7802)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161271 #6D7112
analogous
#123D71 #161271 #451271
triadic
#161271 #711612 #127116
tetradic
#161271 #71123D #6D7112 #127145
square
#161271 #71123D #6D7112 #127145
split-complementary
#161271 #714512 #3D7112
monochromatic
#05041A #0C0A3C #161271 #201AA6 #2B23DB

Accessibility & contrast

On white

15.45
#161271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#161271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161271
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161271#FFFFFF#000000##FFFFFF
##1612711.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161271;
/* rgb */ color: rgb(22, 18, 113);
/* oklch */ color: oklch(27.8% 0.153 272.2);
Tailwind
colors: {
  custom: {
    50: '#66529b',
    500: '#161271',
    950: '#000000',
  },
}
SCSS
$custom: #161271;
$custom-light: #66529b;
$custom-dark: #000000;
JSON
{
  "hex": "#161271",
  "rgb": {
    "r": 22,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 242.526,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27751,
    "c": 0.15258,
    "h": 272.2
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#161271
secondary
#A3A837
accent
#EF39E8
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #161271

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

Preview Lab → · Contrast checker → · Palette generator →

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