#3B1172#3B1172

#3B1172 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.150 H 295.8°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#3B1172
RGBrgb(59, 17, 114)
HSLhsl(266, 74%, 26%)
HSVhsv(266, 85%, 45%)
CMYKcmyk(48.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(18.12, 40.77, -47.02)
CIE-LCHlch(18.12, 62.23, 310.93°)
OKLaboklab(31.29% 0.0652 -0.1348)
OKLCHoklch(31.29% 0.15 295.8)
XYZxyz(5.0405, 2.5455, 16.1421)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1172 #487211
analogous
#111872 #3B1172 #6B1172
triadic
#3B1172 #723B11 #11723B
tetradic
#3B1172 #721118 #487211 #11726B
square
#3B1172 #721118 #487211 #11726B
split-complementary
#3B1172 #726B11 #187211
monochromatic
#0E041B #1F093D #3B1172 #5719A7 #7221DD

Accessibility & contrast

On white

13.91
#3B1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1172
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1172#FFFFFF#000000##FFFFFF
##3B11721.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#2B2D42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3b1172;
/* rgb */ color: rgb(59, 17, 114);
/* oklch */ color: oklch(31.3% 0.150 295.8);
Tailwind
colors: {
  custom: {
    50: '#78569b',
    500: '#3b1172',
    950: '#000000',
  },
}
SCSS
$custom: #3b1172;
$custom-light: #78569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1172",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 265.979,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31293,
    "c": 0.14975,
    "h": 295.8
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#3B1172
secondary
#77A936
accent
#F137A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B1172

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

Preview Lab → · Contrast checker → · Palette generator →

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