#221784#221784

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

Color values

HEX#221784
RGBrgb(34, 23, 132)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 83%, 52%)
CMYKcmyk(74.2%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.45, 40.48, -58.08)
CIE-LCHlch(18.45, 70.79, 304.88°)
OKLaboklab(31.49% 0.0152 -0.1679)
OKLCHoklch(31.49% 0.169 275.2)
XYZxyz(5.1296, 2.6183, 22.0604)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221784 #798417
analogous
#174284 #221784 #581784
triadic
#221784 #842217 #178422
tetradic
#221784 #841742 #798417 #178458
square
#221784 #841742 #798417 #178458
split-complementary
#221784 #845817 #428417
monochromatic
#07051C #150E50 #221784 #2F20B8 #4939DC

Accessibility & contrast

On white

13.78
#221784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221784
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221784#FFFFFF#000000##FFFFFF
##2217841.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221784;
/* rgb */ color: rgb(34, 23, 132);
/* oklch */ color: oklch(31.5% 0.169 275.2);
Tailwind
colors: {
  custom: {
    50: '#6f57a9',
    500: '#221784',
    950: '#000000',
  },
}
SCSS
$custom: #221784;
$custom-light: #6f57a9;
$custom-dark: #000000;
JSON
{
  "hex": "#221784",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 246.055,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31485,
    "c": 0.16862,
    "h": 275.2
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#221784
secondary
#ACB83F
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221784

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

Preview Lab → · Contrast checker → · Palette generator →

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