#3B1774#3B1774

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

Color values

HEX#3B1774
RGBrgb(59, 23, 116)
HSLhsl(263, 67%, 27%)
HSVhsv(263, 80%, 45%)
CMYKcmyk(49.1%, 80.2%, 0%, 54.5%)
CIE-LABlab(19.24, 38.67, -46.48)
CIE-LCHlch(19.24, 60.46, 309.76°)
OKLaboklab(32.13% 0.0597 -0.1333)
OKLCHoklch(32.13% 0.146 294.1)
XYZxyz(5.2615, 2.8034, 16.7835)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1774 #507417
analogous
#172274 #3B1774 #6A1774
triadic
#3B1774 #743B17 #17743B
tetradic
#3B1774 #741722 #507417 #17746A
square
#3B1774 #741722 #507417 #17746A
split-complementary
#3B1774 #746A17 #227417
monochromatic
#0D051A #210D41 #3B1774 #5521A7 #7030D6

Accessibility & contrast

On white

13.45
#3B1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1774
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1774#FFFFFF#000000##FFFFFF
##3B17741.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#2A3145
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b1774;
/* rgb */ color: rgb(59, 23, 116);
/* oklch */ color: oklch(32.1% 0.146 294.1);
Tailwind
colors: {
  custom: {
    50: '#78599d',
    500: '#3b1774',
    950: '#000000',
  },
}
SCSS
$custom: #3b1774;
$custom-light: #78599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1774",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 263.226,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32129,
    "c": 0.14606,
    "h": 294.1
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#3B1774
secondary
#80A93D
accent
#EA3EA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1774

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

Preview Lab → · Contrast checker → · Palette generator →

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