#3B155C#3B155C

#3B155C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.120 H 304.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#3B155C
RGBrgb(59, 21, 92)
HSLhsl(272, 63%, 22%)
HSVhsv(272, 77%, 36%)
CMYKcmyk(35.9%, 77.2%, 0%, 63.9%)
CIE-LABlab(16.69, 33.04, -34.89)
CIE-LCHlch(16.69, 48.05, 313.44°)
OKLaboklab(29.66% 0.0679 -0.0993)
OKLCHoklch(29.66% 0.12 304.4)
XYZxyz(4.0031, 2.2389, 10.3444)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155C #365C15
analogous
#18155C #3B155C #5C155A
triadic
#3B155C #5C3B15 #155C3B
tetradic
#3B155C #5C1815 #365C15 #155A5C
square
#3B155C #5C1815 #365C15 #155A5C
split-complementary
#3B155C #5A5C15 #155C18
monochromatic
#100619 #1B0A2A #3B155C #5B208E #7B2CC0

Accessibility & contrast

On white

14.50
#3B155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3B155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B155C
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155C#FFFFFF#000000##FFFFFF
##3B155C1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#352637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b155c;
/* rgb */ color: rgb(59, 21, 92);
/* oklch */ color: oklch(29.7% 0.120 304.4);
Tailwind
colors: {
  custom: {
    50: '#75568b',
    500: '#3b155c',
    950: '#000000',
  },
}
SCSS
$custom: #3b155c;
$custom-light: #75568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155c",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 272.113,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29657,
    "c": 0.12025,
    "h": 304.4
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#3B155C
secondary
#639339
accent
#E6428E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B155C

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

Preview Lab → · Contrast checker → · Palette generator →

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