#221782#221782

#221782 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.166 H 275.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#221782
RGBrgb(34, 23, 130)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 82%, 51%)
CMYKcmyk(73.8%, 82.3%, 0%, 49%)
CIE-LABlab(18.21, 39.83, -57.21)
CIE-LCHlch(18.21, 69.71, 304.85°)
OKLaboklab(31.25% 0.0158 -0.1654)
OKLCHoklch(31.25% 0.166 275.4)
XYZxyz(4.9940, 2.5641, 21.3465)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221782 #778217
analogous
#174282 #221782 #571782
triadic
#221782 #822217 #178222
tetradic
#221782 #821742 #778217 #178257
square
#221782 #821742 #778217 #178257
split-complementary
#221782 #825717 #428217
monochromatic
#07051A #140E4E #221782 #3020B6 #4938DC

Accessibility & contrast

On white

13.88
#221782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#221782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221782
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221782#FFFFFF#000000##FFFFFF
##2217821.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #221782;
/* rgb */ color: rgb(34, 23, 130);
/* oklch */ color: oklch(31.2% 0.166 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e57a8',
    500: '#221782',
    950: '#000000',
  },
}
SCSS
$custom: #221782;
$custom-light: #6e57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#221782",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 246.168,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.16616,
    "h": 275.4
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#221782
secondary
#AAB63E
accent
#ED3BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221782

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

Preview Lab → · Contrast checker → · Palette generator →

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