#16218E#16218E

#16218E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.175 H 268.5°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#16218E
RGBrgb(22, 33, 142)
HSLhsl(235, 73%, 32%)
HSVhsv(235, 85%, 56%)
CMYKcmyk(84.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(20.87, 37.43, -60.36)
CIE-LCHlch(20.87, 71.02, 301.80°)
OKLaboklab(33.35% -0.0046 -0.1749)
OKLCHoklch(33.35% 0.175 268.5)
XYZxyz(5.7555, 3.2106, 25.9023)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16218E #8E8316
analogous
#165D8E #16218E #47168E
triadic
#16218E #8E1621 #218E16
tetradic
#16218E #8E165D #8E8316 #168E47
square
#16218E #8E165D #8E8316 #168E47
split-complementary
#16218E #8E4716 #5D8E16
monochromatic
#060824 #0E1559 #16218E #1E2DC3 #3D4CE1

Accessibility & contrast

On white

12.79
#16218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#16218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16218E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16218E#FFFFFF#000000##FFFFFF
##16218E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #16218e;
/* rgb */ color: rgb(22, 33, 142);
/* oklch */ color: oklch(33.3% 0.175 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d5db0',
    500: '#16218e',
    950: '#000000',
  },
}
SCSS
$custom: #16218e;
$custom-light: #6d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#16218e",
  "rgb": {
    "r": 22,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 234.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33345,
    "c": 0.17498,
    "h": 268.5
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#16218E
secondary
#C1B53F
accent
#DF38F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #16218E

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

Preview Lab → · Contrast checker → · Palette generator →

#16218E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva