#221684#221684

#221684 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.169 H 275.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#221684
RGBrgb(34, 22, 132)
HSLhsl(247, 71%, 30%)
HSVhsv(247, 83%, 52%)
CMYKcmyk(74.2%, 83.3%, 0%, 48.2%)
CIE-LABlab(18.27, 40.98, -58.36)
CIE-LCHlch(18.27, 71.31, 305.08°)
OKLaboklab(31.37% 0.0156 -0.1687)
OKLCHoklch(31.37% 0.169 275.3)
XYZxyz(5.1101, 2.5793, 22.0539)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221684 #788416
analogous
#164184 #221684 #591684
triadic
#221684 #842216 #168422
tetradic
#221684 #841641 #788416 #168459
square
#221684 #841641 #788416 #168459
split-complementary
#221684 #845916 #418416
monochromatic
#07051B #140D50 #221684 #301FB8 #4937DE

Accessibility & contrast

On white

13.85
#221684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#221684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221684
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221684#FFFFFF#000000##FFFFFF
##2216841.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003187
Deuteranopia (green-blind)
#002882
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221684;
/* rgb */ color: rgb(34, 22, 132);
/* oklch */ color: oklch(31.4% 0.169 275.3);
Tailwind
colors: {
  custom: {
    50: '#6f57a9',
    500: '#221684',
    950: '#000000',
  },
}
SCSS
$custom: #221684;
$custom-light: #6f57a9;
$custom-dark: #000000;
JSON
{
  "hex": "#221684",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 246.545,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.16946,
    "h": 275.3
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#221684
secondary
#ABB83D
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221684

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

Preview Lab → · Contrast checker → · Palette generator →

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