#3815CA#3815CA

#3815CA is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 41.2% C 0.243 H 275.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#3815CA
RGBrgb(56, 21, 202)
HSLhsl(252, 81%, 44%)
HSVhsv(252, 90%, 79%)
CMYKcmyk(72.3%, 89.6%, 0%, 20.8%)
CIE-LABlab(28.49, 62.90, -83.82)
CIE-LCHlch(28.49, 104.80, 306.89°)
OKLaboklab(41.25% 0.025 -0.2421)
OKLCHoklch(41.25% 0.243 275.9)
XYZxyz(12.5562, 5.6401, 56.2926)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3815CA #A7CA15
analogous
#154CCA #3815CA #9215CA
triadic
#3815CA #CA3815 #15CA38
tetradic
#3815CA #CA154C #A7CA15 #15CA92
square
#3815CA #CA154C #A7CA15 #15CA92
split-complementary
#3815CA #CA9215 #4CCA15
monochromatic
#19095B #290F93 #3815CA #5632EA #846AEF

Accessibility & contrast

On white

9.87
#3815CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3815CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3815CA
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3815CA#FFFFFF#000000##FFFFFF
##3815CA1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ACF
Deuteranopia (green-blind)
#003BC7
Tritanopia (blue-blind)
#005577
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3815ca;
/* rgb */ color: rgb(56, 21, 202);
/* oklch */ color: oklch(41.2% 0.243 275.9);
Tailwind
colors: {
  custom: {
    50: '#875edc',
    500: '#3815ca',
    950: '#000000',
  },
}
SCSS
$custom: #3815ca;
$custom-light: #875edc;
$custom-dark: #000000;
JSON
{
  "hex": "#3815ca",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 202
  },
  "hsl": {
    "h": 251.602,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.24335,
    "h": 275.9
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#3815CA
secondary
#BFD566
accent
#F830D1
background
#F9F5FD
surface
#F2EAFB
border
#CCC6D4
text
#0D0515
muted
#7E7983

Preview Lab

Preview with #3815CA

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

Preview Lab → · Contrast checker → · Palette generator →

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