#2216B4#2216B4

#2216B4 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.3% C 0.225 H 270.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2216B4
RGBrgb(34, 22, 180)
HSLhsl(245, 78%, 40%)
HSVhsv(245, 88%, 71%)
CMYKcmyk(81.1%, 87.8%, 0%, 29.4%)
CIE-LABlab(24.35, 55.51, -77.74)
CIE-LCHlch(24.35, 95.52, 305.53°)
OKLaboklab(37.27% 0.0025 -0.2248)
OKLCHoklch(37.27% 0.225 270.6)
XYZxyz(9.1820, 4.2081, 43.4995)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2216B4 #A8B416
analogous
#1659B4 #2216B4 #7116B4
triadic
#2216B4 #B42216 #16B422
tetradic
#2216B4 #B41659 #A8B416 #16B471
square
#2216B4 #B41659 #A8B416 #16B471
split-complementary
#2216B4 #B47116 #59B416
monochromatic
#0D0947 #180F7D #2216B4 #3223E4 #655AEB

Accessibility & contrast

On white

11.40
#2216B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2216B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2216B4
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2216B4#FFFFFF#000000##FFFFFF
##2216B41.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0032B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2216b4;
/* rgb */ color: rgb(34, 22, 180);
/* oklch */ color: oklch(37.3% 0.225 270.6);
Tailwind
colors: {
  custom: {
    50: '#7b5bcc',
    500: '#2216b4',
    950: '#000000',
  },
}
SCSS
$custom: #2216b4;
$custom-light: #7b5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2216b4",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 244.557,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3727,
    "c": 0.22483,
    "h": 270.6
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#2216B4
secondary
#C5CE58
accent
#F533E6
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2216B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2216B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva