#3915B4#3915B4

#3915B4 is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.7% C 0.220 H 279.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3915B4
RGBrgb(57, 21, 180)
HSLhsl(254, 79%, 39%)
HSVhsv(254, 88%, 71%)
CMYKcmyk(68.3%, 88.3%, 0%, 29.4%)
CIE-LABlab(25.86, 57.09, -75.17)
CIE-LCHlch(25.86, 94.39, 307.22°)
OKLaboklab(38.72% 0.0343 -0.217)
OKLCHoklch(38.72% 0.22 279)
XYZxyz(10.1911, 4.7006, 43.5414)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3915B4 #90B415
analogous
#1541B4 #3915B4 #8915B4
triadic
#3915B4 #B43915 #15B439
tetradic
#3915B4 #B41541 #90B415 #15B489
square
#3915B4 #B41541 #90B415 #15B489
split-complementary
#3915B4 #B48915 #41B415
monochromatic
#160846 #280F7D #3915B4 #4D21E5 #7958EC

Accessibility & contrast

On white

10.82
#3915B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3915B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3915B4
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3915B4#FFFFFF#000000##FFFFFF
##3915B41.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)
#0043B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3915b4;
/* rgb */ color: rgb(57, 21, 180);
/* oklch */ color: oklch(38.7% 0.220 279.0);
Tailwind
colors: {
  custom: {
    50: '#835ccc',
    500: '#3915b4',
    950: '#000000',
  },
}
SCSS
$custom: #3915b4;
$custom-light: #835ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3915b4",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 253.585,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38724,
    "c": 0.21967,
    "h": 279
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#3915B4
secondary
#B3CF56
accent
#F632C9
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3915B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3915B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva