#3820A8#3820A8

#3820A8 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.199 H 279.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3820A8
RGBrgb(56, 32, 168)
HSLhsl(251, 68%, 39%)
HSVhsv(251, 81%, 66%)
CMYKcmyk(66.7%, 81%, 0%, 34.1%)
CIE-LABlab(25.86, 49.24, -67.96)
CIE-LCHlch(25.86, 83.92, 305.92°)
OKLaboklab(38.3% 0.0326 -0.1962)
OKLCHoklch(38.3% 0.199 279.4)
XYZxyz(9.2130, 4.7002, 37.4599)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3820A8 #90A820
analogous
#204CA8 #3820A8 #7C20A8
triadic
#3820A8 #A83820 #20A838
tetradic
#3820A8 #A8204C #90A820 #20A87C
square
#3820A8 #A8204C #90A820 #20A87C
split-complementary
#3820A8 #A87C20 #4CA820
monochromatic
#160C41 #271675 #3820A8 #4C2ED7 #7861E1

Accessibility & contrast

On white

10.82
#3820A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3820A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3820A8
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3820A8#FFFFFF#000000##FFFFFF
##3820A81.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3820a8;
/* rgb */ color: rgb(56, 32, 168);
/* oklch */ color: oklch(38.3% 0.199 279.4);
Tailwind
colors: {
  custom: {
    50: '#7f60c3',
    500: '#3820a8',
    950: '#000000',
  },
}
SCSS
$custom: #3820a8;
$custom-light: #7f60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3820a8",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 250.588,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38298,
    "c": 0.19894,
    "h": 279.4
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#3820A8
secondary
#B4C65E
accent
#EB3DCC
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3820A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3820A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva