#3A21BD#3A21BD

#3A21BD is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.9% C 0.222 H 277.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#3A21BD
RGBrgb(58, 33, 189)
HSLhsl(250, 70%, 44%)
HSVhsv(250, 83%, 74%)
CMYKcmyk(69.3%, 82.5%, 0%, 25.9%)
CIE-LABlab(28.54, 55.11, -76.08)
CIE-LCHlch(28.54, 93.94, 305.92°)
OKLaboklab(40.88% 0.0287 -0.2198)
OKLCHoklch(40.88% 0.222 277.4)
XYZxyz(11.4711, 5.6603, 48.6223)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21BD #A4BD21
analogous
#2156BD #3A21BD #8821BD
triadic
#3A21BD #BD3A21 #21BD3A
tetradic
#3A21BD #BD2156 #A4BD21 #21BD88
square
#3A21BD #BD2156 #A4BD21 #21BD88
split-complementary
#3A21BD #BD8821 #56BD21
monochromatic
#1A0F55 #2A1889 #3A21BD #573EDD #8572E6

Accessibility & contrast

On white

9.85
#3A21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3A21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21BD
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21BD#FFFFFF#000000##FFFFFF
##3A21BD1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049C1
Deuteranopia (green-blind)
#003DBA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a21bd;
/* rgb */ color: rgb(58, 33, 189);
/* oklch */ color: oklch(40.9% 0.222 277.4);
Tailwind
colors: {
  custom: {
    50: '#8462d2',
    500: '#3a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #3a21bd;
$custom-light: #8462d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21bd",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 249.615,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40877,
    "c": 0.22167,
    "h": 277.4
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#3A21BD
secondary
#BECD6D
accent
#ED3BD0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0514
muted
#7D7A83

Preview Lab

Preview with #3A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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