#3A21BA#3A21BA

#3A21BA is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.5% C 0.218 H 277.8°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#3A21BA
RGBrgb(58, 33, 186)
HSLhsl(250, 70%, 43%)
HSVhsv(250, 82%, 73%)
CMYKcmyk(68.8%, 82.3%, 0%, 27.1%)
CIE-LABlab(28.20, 54.25, -74.87)
CIE-LCHlch(28.20, 92.45, 305.93°)
OKLaboklab(40.54% 0.0296 -0.2163)
OKLCHoklch(40.54% 0.218 277.8)
XYZxyz(11.1488, 5.5314, 46.9250)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21BA #A1BA21
analogous
#2154BA #3A21BA #8621BA
triadic
#3A21BA #BA3A21 #21BA3A
tetradic
#3A21BA #BA2154 #A1BA21 #21BA86
square
#3A21BA #BA2154 #A1BA21 #21BA86
split-complementary
#3A21BA #BA8621 #54BA21
monochromatic
#1A0F52 #2A1886 #3A21BA #563CDC #8370E6

Accessibility & contrast

On white

9.97
#3A21BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3A21BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21BA
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21BA#FFFFFF#000000##FFFFFF
##3A21BA1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BE
Deuteranopia (green-blind)
#003CB7
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a21ba;
/* rgb */ color: rgb(58, 33, 186);
/* oklch */ color: oklch(40.5% 0.218 277.8);
Tailwind
colors: {
  custom: {
    50: '#8362d0',
    500: '#3a21ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a21ba;
$custom-light: #8362d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21ba",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 249.804,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40543,
    "c": 0.21829,
    "h": 277.8
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#3A21BA
secondary
#BCCC6B
accent
#ED3BD0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #3A21BA

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

Preview Lab → · Contrast checker → · Palette generator →

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