#16228F#16228F

#16228F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.175 H 268.3°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#16228F
RGBrgb(22, 34, 143)
HSLhsl(234, 73%, 32%)
HSVhsv(234, 85%, 56%)
CMYKcmyk(84.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.20, 37.19, -60.44)
CIE-LCHlch(21.20, 70.96, 301.60°)
OKLaboklab(33.61% -0.0051 -0.1752)
OKLCHoklch(33.61% 0.175 268.3)
XYZxyz(5.8591, 3.2971, 26.3089)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16228F #8F8316
analogous
#165E8F #16228F #47168F
triadic
#16228F #8F1622 #228F16
tetradic
#16228F #8F165E #8F8316 #168F47
square
#16228F #8F165E #8F8316 #168F47
split-complementary
#16228F #8F4716 #5E8F16
monochromatic
#060925 #0E155A #16228F #1E2FC4 #3E4EE1

Accessibility & contrast

On white

12.65
#16228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#16228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16228F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16228F#FFFFFF#000000##FFFFFF
##16228F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #16228f;
/* rgb */ color: rgb(22, 34, 143);
/* oklch */ color: oklch(33.6% 0.175 268.3);
Tailwind
colors: {
  custom: {
    50: '#6d5eb1',
    500: '#16228f',
    950: '#000000',
  },
}
SCSS
$custom: #16228f;
$custom-light: #6d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#16228f",
  "rgb": {
    "r": 22,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 234.05,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33613,
    "c": 0.17523,
    "h": 268.3
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#16228F
secondary
#C1B43F
accent
#DE38F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #16228F

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

Preview Lab → · Contrast checker → · Palette generator →

#16228F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva