#3B1D98#3B1D98

#3B1D98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.182 H 283.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3B1D98
RGBrgb(59, 29, 152)
HSLhsl(255, 68%, 35%)
HSVhsv(255, 81%, 60%)
CMYKcmyk(61.2%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.92, 46.23, -61.42)
CIE-LCHlch(23.92, 76.87, 306.97°)
OKLaboklab(36.5% 0.0438 -0.1771)
OKLCHoklch(36.5% 0.182 283.9)
XYZxyz(7.9087, 4.0750, 30.0695)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1D98 #7A981D
analogous
#1D3C98 #3B1D98 #781D98
triadic
#3B1D98 #983B1D #1D983B
tetradic
#3B1D98 #981D3C #7A981D #1D9878
square
#3B1D98 #981D3C #7A981D #1D9878
split-complementary
#3B1D98 #98781D #3C981D
monochromatic
#130931 #271365 #3B1D98 #4F27CB #7452DE

Accessibility & contrast

On white

11.57
#3B1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1D98
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1D98#FFFFFF#000000##FFFFFF
##3B1D981.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b1d98;
/* rgb */ color: rgb(59, 29, 152);
/* oklch */ color: oklch(36.5% 0.182 283.9);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#3b1d98',
    950: '#000000',
  },
}
SCSS
$custom: #3b1d98;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1d98",
  "rgb": {
    "r": 59,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 254.634,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36502,
    "c": 0.1824,
    "h": 283.9
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#3B1D98
secondary
#A5C150
accent
#EB3DC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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