#3B155D#3B155D

#3B155D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.121 H 303.9°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#3B155D
RGBrgb(59, 21, 93)
HSLhsl(272, 63%, 22%)
HSVhsv(272, 77%, 36%)
CMYKcmyk(36.6%, 77.4%, 0%, 63.5%)
CIE-LABlab(16.78, 33.31, -35.42)
CIE-LCHlch(16.78, 48.62, 313.24°)
OKLaboklab(29.74% 0.0677 -0.1008)
OKLCHoklch(29.74% 0.121 303.9)
XYZxyz(4.0471, 2.2565, 10.5761)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155D #375D15
analogous
#17155D #3B155D #5D155B
triadic
#3B155D #5D3B15 #155D3B
tetradic
#3B155D #5D1715 #375D15 #155B5D
square
#3B155D #5D1715 #375D15 #155B5D
split-complementary
#3B155D #5B5D15 #155D17
monochromatic
#100619 #1B0A2B #3B155D #5B208F #7A2CC1

Accessibility & contrast

On white

14.47
#3B155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B155D
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155D#FFFFFF#000000##FFFFFF
##3B155D1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#342637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b155d;
/* rgb */ color: rgb(59, 21, 93);
/* oklch */ color: oklch(29.7% 0.121 303.9);
Tailwind
colors: {
  custom: {
    50: '#75568b',
    500: '#3b155d',
    950: '#000000',
  },
}
SCSS
$custom: #3b155d;
$custom-light: #75568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155d",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 271.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29744,
    "c": 0.12142,
    "h": 303.9
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#3B155D
secondary
#649439
accent
#E6428F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B155D

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

Preview Lab → · Contrast checker → · Palette generator →

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