#3B1772#3B1772

#3B1772 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.144 H 294.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#3B1772
RGBrgb(59, 23, 114)
HSLhsl(264, 66%, 27%)
HSVhsv(264, 80%, 45%)
CMYKcmyk(48.2%, 79.8%, 0%, 55.3%)
CIE-LABlab(19.04, 38.10, -45.51)
CIE-LCHlch(19.04, 59.35, 309.94°)
OKLaboklab(31.93% 0.0603 -0.1305)
OKLCHoklch(31.93% 0.144 294.8)
XYZxyz(5.1465, 2.7574, 16.1774)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1772 #4E7217
analogous
#172172 #3B1772 #691772
triadic
#3B1772 #723B17 #17723B
tetradic
#3B1772 #721721 #4E7217 #177269
square
#3B1772 #721721 #4E7217 #177269
split-complementary
#3B1772 #726917 #217217
monochromatic
#0D0519 #210D3F #3B1772 #5521A5 #702ED5

Accessibility & contrast

On white

13.53
#3B1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3B1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1772
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1772#FFFFFF#000000##FFFFFF
##3B17721.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#2B3044
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b1772;
/* rgb */ color: rgb(59, 23, 114);
/* oklch */ color: oklch(31.9% 0.144 294.8);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3b1772',
    950: '#000000',
  },
}
SCSS
$custom: #3b1772;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1772",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 263.736,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31934,
    "c": 0.14372,
    "h": 294.8
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#3B1772
secondary
#7EA83D
accent
#E93EA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1772

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

Preview Lab → · Contrast checker → · Palette generator →

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