#3815A0#3815A0

#3815A0 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.3% C 0.198 H 281.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3815A0
RGBrgb(56, 21, 160)
HSLhsl(255, 77%, 35%)
HSVhsv(255, 87%, 63%)
CMYKcmyk(65%, 86.9%, 0%, 37.3%)
CIE-LABlab(23.39, 51.54, -67.21)
CIE-LCHlch(23.39, 84.70, 307.49°)
OKLaboklab(36.33% 0.0402 -0.1939)
OKLCHoklch(36.33% 0.198 281.7)
XYZxyz(8.2422, 3.9145, 33.5721)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3815A0 #7DA015
analogous
#1537A0 #3815A0 #7D15A0
triadic
#3815A0 #A03815 #15A038
tetradic
#3815A0 #A01537 #7DA015 #15A07D
square
#3815A0 #A01537 #7DA015 #15A07D
split-complementary
#3815A0 #A07D15 #37A015
monochromatic
#120734 #250E6A #3815A0 #4B1CD6 #7048E7

Accessibility & contrast

On white

11.78
#3815A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3815A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3815A0
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3815A0#FFFFFF#000000##FFFFFF
##3815A01.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3815a0;
/* rgb */ color: rgb(56, 21, 160);
/* oklch */ color: oklch(36.3% 0.198 281.7);
Tailwind
colors: {
  custom: {
    50: '#7e5bbd',
    500: '#3815a0',
    950: '#000000',
  },
}
SCSS
$custom: #3815a0;
$custom-light: #7e5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3815a0",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 255.108,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.198,
    "h": 281.7
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#3815A0
secondary
#A8C849
accent
#F334C3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3815A0

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

Preview Lab → · Contrast checker → · Palette generator →

#3815A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva