#221586#221586

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

Color values

HEX#221586
RGBrgb(34, 21, 134)
HSLhsl(247, 73%, 30%)
HSVhsv(247, 84%, 53%)
CMYKcmyk(74.6%, 84.3%, 0%, 47.5%)
CIE-LABlab(18.35, 42.10, -59.49)
CIE-LCHlch(18.35, 72.88, 305.29°)
OKLaboklab(31.49% 0.0154 -0.172)
OKLCHoklch(31.49% 0.173 275.1)
XYZxyz(5.2295, 2.5971, 22.7753)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221586 #798615
analogous
#154086 #221586 #5B1586
triadic
#221586 #862215 #158622
tetradic
#221586 #861540 #798615 #15865B
square
#221586 #861540 #798615 #15865B
split-complementary
#221586 #865B15 #408615
monochromatic
#07041C #150D51 #221586 #2F1DBB #4936DF

Accessibility & contrast

On white

13.82
#221586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221586
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221586#FFFFFF#000000##FFFFFF
##2215861.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221586;
/* rgb */ color: rgb(34, 21, 134);
/* oklch */ color: oklch(31.5% 0.173 275.1);
Tailwind
colors: {
  custom: {
    50: '#6f57ab',
    500: '#221586',
    950: '#000000',
  },
}
SCSS
$custom: #221586;
$custom-light: #6f57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#221586",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 246.903,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31491,
    "c": 0.17269,
    "h": 275.1
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#221586
secondary
#ACBA3C
accent
#F038DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221586

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

Preview Lab → · Contrast checker → · Palette generator →

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