#3B156B#3B156B

#3B156B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.138 H 297.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#3B156B
RGBrgb(59, 21, 107)
HSLhsl(267, 67%, 25%)
HSVhsv(267, 80%, 42%)
CMYKcmyk(44.9%, 80.4%, 0%, 58%)
CIE-LABlab(18.04, 37.11, -42.60)
CIE-LCHlch(18.04, 56.50, 311.06°)
OKLaboklab(31.03% 0.0642 -0.1219)
OKLCHoklch(31.03% 0.138 297.8)
XYZxyz(4.7249, 2.5276, 14.1460)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B156B #456B15
analogous
#151A6B #3B156B #66156B
triadic
#3B156B #6B3B15 #156B3B
tetradic
#3B156B #6B151A #456B15 #156B66
square
#3B156B #6B151A #456B15 #156B66
split-complementary
#3B156B #6B6615 #1A6B15
monochromatic
#0E051A #1F0B38 #3B156B #571F9E #7329D1

Accessibility & contrast

On white

13.95
#3B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B156B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B156B#FFFFFF#000000##FFFFFF
##3B156B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2F2C3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3b156b;
/* rgb */ color: rgb(59, 21, 107);
/* oklch */ color: oklch(31.0% 0.138 297.8);
Tailwind
colors: {
  custom: {
    50: '#765796',
    500: '#3b156b',
    950: '#000000',
  },
}
SCSS
$custom: #3b156b;
$custom-light: #765796;
$custom-dark: #000000;
JSON
{
  "hex": "#3b156b",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 266.512,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.13776,
    "h": 297.8
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#3B156B
secondary
#74A23A
accent
#EA3E9E
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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