#3A21CA#3A21CA

#3A21CA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.3% C 0.236 H 276.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#3A21CA
RGBrgb(58, 33, 202)
HSLhsl(249, 72%, 46%)
HSVhsv(249, 84%, 79%)
CMYKcmyk(71.3%, 83.7%, 0%, 20.8%)
CIE-LABlab(30.04, 58.83, -81.24)
CIE-LCHlch(30.04, 100.30, 305.91°)
OKLaboklab(42.34% 0.0248 -0.2348)
OKLCHoklch(42.34% 0.236 276)
XYZxyz(12.9460, 6.2503, 56.3898)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21CA #B1CA21
analogous
#215CCA #3A21CA #8E21CA
triadic
#3A21CA #CA3A21 #21CA3A
tetradic
#3A21CA #CA215C #B1CA21 #21CA8E
square
#3A21CA #CA215C #B1CA21 #21CA8E
split-complementary
#3A21CA #CA8E21 #5CCA21
monochromatic
#1C1061 #2B1895 #3A21CA #5E47E1 #8C7CEA

Accessibility & contrast

On white

9.33
#3A21CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3A21CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21CA
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21CA#FFFFFF#000000##FFFFFF
##3A21CA1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ECE
Deuteranopia (green-blind)
#003FC7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a21ca;
/* rgb */ color: rgb(58, 33, 202);
/* oklch */ color: oklch(42.3% 0.236 276.0);
Tailwind
colors: {
  custom: {
    50: '#8763dc',
    500: '#3a21ca',
    950: '#000000',
  },
}
SCSS
$custom: #3a21ca;
$custom-light: #8763dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21ca",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 248.876,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.23607,
    "h": 276
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#3A21CA
secondary
#C4D275
accent
#EF39D4
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3A21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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