#3B15B4#3B15B4

#3B15B4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.9% C 0.219 H 279.8°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#3B15B4
RGBrgb(59, 21, 180)
HSLhsl(254, 79%, 39%)
HSVhsv(254, 88%, 71%)
CMYKcmyk(67.2%, 88.3%, 0%, 29.4%)
CIE-LABlab(26.04, 57.22, -74.87)
CIE-LCHlch(26.04, 94.23, 307.39°)
OKLaboklab(38.89% 0.0374 -0.2161)
OKLCHoklch(38.89% 0.219 279.8)
XYZxyz(10.3074, 4.7606, 43.5469)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B15B4 #8EB415
analogous
#153EB4 #3B15B4 #8B15B4
triadic
#3B15B4 #B43B15 #15B43B
tetradic
#3B15B4 #B4153E #8EB415 #15B48B
square
#3B15B4 #B4153E #8EB415 #15B48B
split-complementary
#3B15B4 #B48B15 #3EB415
monochromatic
#170846 #290F7D #3B15B4 #5021E5 #7B58EC

Accessibility & contrast

On white

10.76
#3B15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3B15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B15B4
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B15B4#FFFFFF#000000##FFFFFF
##3B15B41.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b15b4;
/* rgb */ color: rgb(59, 21, 180);
/* oklch */ color: oklch(38.9% 0.219 279.8);
Tailwind
colors: {
  custom: {
    50: '#835dcc',
    500: '#3b15b4',
    950: '#000000',
  },
}
SCSS
$custom: #3b15b4;
$custom-light: #835dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b15b4",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 254.34,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38888,
    "c": 0.21928,
    "h": 279.8
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#3B15B4
secondary
#B2CF56
accent
#F632C7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3B15B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3B15B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva