#3B1872#3B1872

#3B1872 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.143 H 294.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#3B1872
RGBrgb(59, 24, 114)
HSLhsl(263, 65%, 27%)
HSVhsv(263, 79%, 45%)
CMYKcmyk(48.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(19.22, 37.62, -45.23)
CIE-LCHlch(19.22, 58.83, 309.75°)
OKLaboklab(32.05% 0.0594 -0.1296)
OKLCHoklch(32.05% 0.143 294.6)
XYZxyz(5.1667, 2.7978, 16.1841)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1872 #4F7218
analogous
#182272 #3B1872 #681872
triadic
#3B1872 #723B18 #18723B
tetradic
#3B1872 #721822 #4F7218 #187268
square
#3B1872 #721822 #4F7218 #187268
split-complementary
#3B1872 #726818 #227218
monochromatic
#0D0519 #210D3F #3B1872 #5523A5 #7031D4

Accessibility & contrast

On white

13.46
#3B1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3B1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1872
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1872#FFFFFF#000000##FFFFFF
##3B18721.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#2B3044
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b1872;
/* rgb */ color: rgb(59, 24, 114);
/* oklch */ color: oklch(32.1% 0.143 294.6);
Tailwind
colors: {
  custom: {
    50: '#77599b',
    500: '#3b1872',
    950: '#000000',
  },
}
SCSS
$custom: #3b1872;
$custom-light: #77599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1872",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 263.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32054,
    "c": 0.14261,
    "h": 294.6
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#3B1872
secondary
#7FA73E
accent
#E840A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1872

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

Preview Lab → · Contrast checker → · Palette generator →

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