#3B2178#3B2178

#3B2178 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.139 H 290.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3B2178
RGBrgb(59, 33, 120)
HSLhsl(258, 57%, 30%)
HSVhsv(258, 73%, 47%)
CMYKcmyk(50.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.48, 34.57, -45.38)
CIE-LCHlch(21.48, 57.05, 307.31°)
OKLaboklab(33.83% 0.0493 -0.1301)
OKLCHoklch(33.83% 0.139 290.7)
XYZxyz(5.7367, 3.3734, 18.1145)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2178 #5E7821
analogous
#213278 #3B2178 #672178
triadic
#3B2178 #783B21 #21783B
tetradic
#3B2178 #782132 #5E7821 #217867
square
#3B2178 #782132 #5E7821 #217867
split-complementary
#3B2178 #786721 #327821
monochromatic
#0C0718 #231448 #3B2178 #532EA8 #6F47CC

Accessibility & contrast

On white

12.54
#3B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2178
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2178#FFFFFF#000000##FFFFFF
##3B21781.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#27374A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b2178;
/* rgb */ color: rgb(59, 33, 120);
/* oklch */ color: oklch(33.8% 0.139 290.7);
Tailwind
colors: {
  custom: {
    50: '#775ea0',
    500: '#3b2178',
    950: '#000000',
  },
}
SCSS
$custom: #3b2178;
$custom-light: #775ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2178",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 257.931,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33829,
    "c": 0.13915,
    "h": 290.7
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#3B2178
secondary
#8EAB4A
accent
#E048B3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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