#3821AA#3821AA

#3821AA is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.6% C 0.200 H 279.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3821AA
RGBrgb(56, 33, 170)
HSLhsl(250, 67%, 40%)
HSVhsv(250, 81%, 67%)
CMYKcmyk(67.1%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.24, 49.36, -68.54)
CIE-LCHlch(26.24, 84.47, 305.76°)
OKLaboklab(38.63% 0.0315 -0.1979)
OKLCHoklch(38.63% 0.2 279.1)
XYZxyz(9.4281, 4.8300, 38.4578)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3821AA #93AA21
analogous
#214FAA #3821AA #7D21AA
triadic
#3821AA #AA3821 #21AA38
tetradic
#3821AA #AA214F #93AA21 #21AA7D
square
#3821AA #AA214F #93AA21 #21AA7D
split-complementary
#3821AA #AA7D21 #4FAA21
monochromatic
#160D43 #271777 #3821AA #4D31D7 #7964E1

Accessibility & contrast

On white

10.68
#3821AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3821AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3821AA
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3821AA#FFFFFF#000000##FFFFFF
##3821AA1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3821aa;
/* rgb */ color: rgb(56, 33, 170);
/* oklch */ color: oklch(38.6% 0.200 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f61c5',
    500: '#3821aa',
    950: '#000000',
  },
}
SCSS
$custom: #3821aa;
$custom-light: #7f61c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3821aa",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 250.073,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.20043,
    "h": 279.1
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#3821AA
secondary
#B5C661
accent
#EA3DCD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3821AA

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

Preview Lab → · Contrast checker → · Palette generator →

#3821AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva