#3B156A#3B156A

#3B156A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.137 H 298.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#3B156A
RGBrgb(59, 21, 106)
HSLhsl(267, 67%, 25%)
HSVhsv(267, 80%, 42%)
CMYKcmyk(44.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(17.95, 36.83, -42.10)
CIE-LCHlch(17.95, 55.94, 311.18°)
OKLaboklab(30.93% 0.0644 -0.1204)
OKLCHoklch(30.93% 0.137 298.1)
XYZxyz(4.6726, 2.5067, 13.8705)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B156A #446A15
analogous
#15196A #3B156A #66156A
triadic
#3B156A #6A3B15 #156A3B
tetradic
#3B156A #6A1519 #446A15 #156A66
square
#3B156A #6A1519 #446A15 #156A66
split-complementary
#3B156A #6A6615 #196A15
monochromatic
#0E051A #1F0B37 #3B156A #571F9D #7429D0

Accessibility & contrast

On white

13.99
#3B156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3B156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B156A
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B156A#FFFFFF#000000##FFFFFF
##3B156A1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b156a;
/* rgb */ color: rgb(59, 21, 106);
/* oklch */ color: oklch(30.9% 0.137 298.1);
Tailwind
colors: {
  custom: {
    50: '#765795',
    500: '#3b156a',
    950: '#000000',
  },
}
SCSS
$custom: #3b156a;
$custom-light: #765795;
$custom-dark: #000000;
JSON
{
  "hex": "#3b156a",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 266.824,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30932,
    "c": 0.1366,
    "h": 298.1
  },
  "luminance": 0.02507
}

Semantic roles & 50–950 ramp

primary
#3B156A
secondary
#73A13A
accent
#EA3E9D
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B156A

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

Preview Lab → · Contrast checker → · Palette generator →

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