#3B1E8F#3B1E8F

#3B1E8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.171 H 285.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3B1E8F
RGBrgb(59, 30, 143)
HSLhsl(255, 65%, 34%)
HSVhsv(255, 79%, 56%)
CMYKcmyk(58.7%, 79%, 0%, 43.9%)
CIE-LABlab(23.14, 43.10, -57.14)
CIE-LCHlch(23.14, 71.57, 307.02°)
OKLaboklab(35.68% 0.046 -0.1646)
OKLCHoklch(35.68% 0.171 285.6)
XYZxyz(7.2243, 3.8411, 26.3420)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1E8F #728F1E
analogous
#1E3A8F #3B1E8F #741E8F
triadic
#3B1E8F #8F3B1E #1E8F3B
tetradic
#3B1E8F #8F1E3A #728F1E #1E8F74
square
#3B1E8F #8F1E3A #728F1E #1E8F74
split-complementary
#3B1E8F #8F741E #3A8F1E
monochromatic
#11092A #26135C #3B1E8F #5029C2 #724EDA

Accessibility & contrast

On white

11.88
#3B1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3B1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1E8F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1E8F#FFFFFF#000000##FFFFFF
##3B1E8F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#0F3F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b1e8f;
/* rgb */ color: rgb(59, 30, 143);
/* oklch */ color: oklch(35.7% 0.171 285.6);
Tailwind
colors: {
  custom: {
    50: '#7c5eb1',
    500: '#3b1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #3b1e8f;
$custom-light: #7c5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1e8f",
  "rgb": {
    "r": 59,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 255.398,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.17088,
    "h": 285.6
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#3B1E8F
secondary
#A0BC4C
accent
#E840BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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