#3B1474#3B1474

#3B1474 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.149 H 294.6°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#3B1474
RGBrgb(59, 20, 116)
HSLhsl(264, 71%, 27%)
HSVhsv(264, 83%, 45%)
CMYKcmyk(49.1%, 82.8%, 0%, 54.5%)
CIE-LABlab(18.76, 40.05, -47.26)
CIE-LCHlch(18.76, 61.95, 310.27°)
OKLaboklab(31.8% 0.0622 -0.1356)
OKLCHoklch(31.8% 0.149 294.6)
XYZxyz(5.2053, 2.6909, 16.7648)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1474 #4D7414
analogous
#141D74 #3B1474 #6B1474
triadic
#3B1474 #743B14 #14743B
tetradic
#3B1474 #74141D #4D7414 #14746B
square
#3B1474 #74141D #4D7414 #14746B
split-complementary
#3B1474 #746B14 #1D7414
monochromatic
#0D051A #200B40 #3B1474 #561DA8 #7128DA

Accessibility & contrast

On white

13.65
#3B1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3B1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1474
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1474#FFFFFF#000000##FFFFFF
##3B14741.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2A2F44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b1474;
/* rgb */ color: rgb(59, 20, 116);
/* oklch */ color: oklch(31.8% 0.149 294.6);
Tailwind
colors: {
  custom: {
    50: '#78579d',
    500: '#3b1474',
    950: '#000000',
  },
}
SCSS
$custom: #3b1474;
$custom-light: #78579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1474",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 264.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31796,
    "c": 0.14915,
    "h": 294.6
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#3B1474
secondary
#7CAA3A
accent
#ED3AA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B1474

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

Preview Lab → · Contrast checker → · Palette generator →

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