#3B1173#3B1173

#3B1173 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.151 H 295.4°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#3B1173
RGBrgb(59, 17, 115)
HSLhsl(266, 74%, 26%)
HSVhsv(266, 85%, 45%)
CMYKcmyk(48.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.23, 41.04, -47.50)
CIE-LCHlch(18.23, 62.77, 310.83°)
OKLaboklab(31.39% 0.0648 -0.1362)
OKLCHoklch(31.39% 0.151 295.4)
XYZxyz(5.0978, 2.5684, 16.4435)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1173 #497311
analogous
#111873 #3B1173 #6C1173
triadic
#3B1173 #733B11 #11733B
tetradic
#3B1173 #731118 #497311 #11736C
square
#3B1173 #731118 #497311 #11736C
split-complementary
#3B1173 #736C11 #187311
monochromatic
#0E041B #20093E #3B1173 #5619A8 #7221DE

Accessibility & contrast

On white

13.87
#3B1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1173
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1173#FFFFFF#000000##FFFFFF
##3B11731.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#2B2E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3b1173;
/* rgb */ color: rgb(59, 17, 115);
/* oklch */ color: oklch(31.4% 0.151 295.4);
Tailwind
colors: {
  custom: {
    50: '#78569c',
    500: '#3b1173',
    950: '#000000',
  },
}
SCSS
$custom: #3b1173;
$custom-light: #78569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1173",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 265.714,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31394,
    "c": 0.15086,
    "h": 295.4
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#3B1173
secondary
#78AA36
accent
#F137A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3B1173

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

Preview Lab → · Contrast checker → · Palette generator →

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