#161272#161272

#161272 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.154 H 272.0°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#161272
RGBrgb(22, 18, 114)
HSLhsl(243, 73%, 26%)
HSVhsv(243, 84%, 45%)
CMYKcmyk(80.7%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.50, 36.19, -53.13)
CIE-LCHlch(14.50, 64.28, 304.26°)
OKLaboklab(27.88% 0.0055 -0.1537)
OKLCHoklch(27.88% 0.154 272)
XYZxyz(3.5834, 1.8177, 16.0783)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161272 #6E7212
analogous
#123E72 #161272 #461272
triadic
#161272 #721612 #127216
tetradic
#161272 #72123E #6E7212 #127246
square
#161272 #72123E #6E7212 #127246
split-complementary
#161272 #724612 #3E7212
monochromatic
#05041A #0C0A3D #161272 #201AA7 #2A23DC

Accessibility & contrast

On white

15.40
#161272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161272
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161272#FFFFFF#000000##FFFFFF
##1612721.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #161272;
/* rgb */ color: rgb(22, 18, 114);
/* oklch */ color: oklch(27.9% 0.154 272.0);
Tailwind
colors: {
  custom: {
    50: '#66539c',
    500: '#161272',
    950: '#000000',
  },
}
SCSS
$custom: #161272;
$custom-light: #66539c;
$custom-dark: #000000;
JSON
{
  "hex": "#161272",
  "rgb": {
    "r": 22,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 242.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27877,
    "c": 0.15384,
    "h": 272
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#161272
secondary
#A4A937
accent
#EF38E8
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #161272

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

Preview Lab → · Contrast checker → · Palette generator →

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