#3B1877#3B1877

#3B1877 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 293.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#3B1877
RGBrgb(59, 24, 119)
HSLhsl(262, 66%, 28%)
HSVhsv(262, 80%, 47%)
CMYKcmyk(50.4%, 79.8%, 0%, 53.3%)
CIE-LABlab(19.70, 39.04, -47.65)
CIE-LCHlch(19.70, 61.60, 309.33°)
OKLaboklab(32.54% 0.0579 -0.1368)
OKLCHoklch(32.54% 0.149 293)
XYZxyz(5.4591, 2.9148, 17.7242)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1877 #547718
analogous
#182477 #3B1877 #6A1877
triadic
#3B1877 #773B18 #18773B
tetradic
#3B1877 #771824 #547718 #18776A
square
#3B1877 #771824 #547718 #18776A
split-complementary
#3B1877 #776A18 #247718
monochromatic
#0D0519 #220E44 #3B1877 #5422AA #6F33D6

Accessibility & contrast

On white

13.27
#3B1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3B1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1877
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1877#FFFFFF#000000##FFFFFF
##3B18771.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#283247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1877;
/* rgb */ color: rgb(59, 24, 119);
/* oklch */ color: oklch(32.5% 0.149 293.0);
Tailwind
colors: {
  custom: {
    50: '#78599f',
    500: '#3b1877',
    950: '#000000',
  },
}
SCSS
$custom: #3b1877;
$custom-light: #78599f;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1877",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 262.105,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32541,
    "c": 0.14852,
    "h": 293
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#3B1877
secondary
#84AC3F
accent
#E93EAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3B1877

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

Preview Lab → · Contrast checker → · Palette generator →

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