#3A21C2#3A21C2

#3A21C2 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.4% C 0.227 H 276.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#3A21C2
RGBrgb(58, 33, 194)
HSLhsl(249, 71%, 45%)
HSVhsv(249, 83%, 76%)
CMYKcmyk(70.1%, 83%, 0%, 23.9%)
CIE-LABlab(29.11, 56.55, -78.08)
CIE-LCHlch(29.11, 96.41, 305.91°)
OKLaboklab(41.44% 0.0272 -0.2256)
OKLCHoklch(41.44% 0.227 276.9)
XYZxyz(12.0232, 5.8812, 51.5300)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21C2 #A9C221
analogous
#2158C2 #3A21C2 #8B21C2
triadic
#3A21C2 #C23A21 #21C23A
tetradic
#3A21C2 #C22158 #A9C221 #21C28B
square
#3A21C2 #C22158 #A9C221 #21C28B
split-complementary
#3A21C2 #C28B21 #58C221
monochromatic
#1B0F59 #2A188E #3A21C2 #5A41DF #8776E8

Accessibility & contrast

On white

9.65
#3A21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3A21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21C2
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21C2#FFFFFF#000000##FFFFFF
##3A21C21.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003EBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a21c2;
/* rgb */ color: rgb(58, 33, 194);
/* oklch */ color: oklch(41.4% 0.227 276.9);
Tailwind
colors: {
  custom: {
    50: '#8563d6',
    500: '#3a21c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a21c2;
$custom-light: #8563d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21c2",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 249.317,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.22724,
    "h": 276.9
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#3A21C2
secondary
#C0CF70
accent
#EE3AD2
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3A21C2

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

Preview Lab → · Contrast checker → · Palette generator →

#3A21C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva