#3B2183#3B2183

#3B2183 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.153 H 287.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3B2183
RGBrgb(59, 33, 131)
HSLhsl(256, 60%, 32%)
HSVhsv(256, 75%, 51%)
CMYKcmyk(55%, 74.8%, 0%, 48.6%)
CIE-LABlab(22.50, 37.92, -50.69)
CIE-LCHlch(22.50, 63.30, 306.80°)
OKLaboklab(34.87% 0.0469 -0.1457)
OKLCHoklch(34.87% 0.153 287.8)
XYZxyz(6.4430, 3.6559, 21.8345)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2183 #698321
analogous
#213883 #3B2183 #6C2183
triadic
#3B2183 #833B21 #21833B
tetradic
#3B2183 #832138 #698321 #21836C
square
#3B2183 #832138 #698321 #21836C
split-complementary
#3B2183 #836C21 #388321
monochromatic
#0F0821 #251552 #3B2183 #512DB4 #704CD2

Accessibility & contrast

On white

12.13
#3B2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3B2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2183
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2183#FFFFFF#000000##FFFFFF
##3B21831.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#1E3B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b2183;
/* rgb */ color: rgb(59, 33, 131);
/* oklch */ color: oklch(34.9% 0.153 287.8);
Tailwind
colors: {
  custom: {
    50: '#795fa8',
    500: '#3b2183',
    950: '#000000',
  },
}
SCSS
$custom: #3b2183;
$custom-light: #795fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2183",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 255.918,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.15306,
    "h": 287.8
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#3B2183
secondary
#99B54B
accent
#E345B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B2183

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

Preview Lab → · Contrast checker → · Palette generator →

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