#3B1878#3B1878

#3B1878 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.150 H 292.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3B1878
RGBrgb(59, 24, 120)
HSLhsl(262, 67%, 28%)
HSVhsv(262, 80%, 47%)
CMYKcmyk(50.8%, 80%, 0%, 52.9%)
CIE-LABlab(19.80, 39.32, -48.13)
CIE-LCHlch(19.80, 62.15, 309.25°)
OKLaboklab(32.64% 0.0576 -0.1382)
OKLCHoklch(32.64% 0.15 292.6)
XYZxyz(5.5195, 2.9389, 18.0421)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1878 #557818
analogous
#182578 #3B1878 #6B1878
triadic
#3B1878 #783B18 #18783B
tetradic
#3B1878 #781825 #557818 #18786B
square
#3B1878 #781825 #557818 #18786B
split-complementary
#3B1878 #786B18 #257818
monochromatic
#0D051A #220E45 #3B1878 #5422AB #6F34D6

Accessibility & contrast

On white

13.23
#3B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3B1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1878
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1878#FFFFFF#000000##FFFFFF
##3B18781.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#273347
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1878;
/* rgb */ color: rgb(59, 24, 120);
/* oklch */ color: oklch(32.6% 0.150 292.6);
Tailwind
colors: {
  custom: {
    50: '#7859a0',
    500: '#3b1878',
    950: '#000000',
  },
}
SCSS
$custom: #3b1878;
$custom-light: #7859a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1878",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 261.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3264,
    "c": 0.14969,
    "h": 292.6
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#3B1878
secondary
#85AD3F
accent
#EA3EAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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