#3B1E8A#3B1E8A

#3B1E8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.165 H 286.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3B1E8A
RGBrgb(59, 30, 138)
HSLhsl(256, 64%, 33%)
HSVhsv(256, 78%, 54%)
CMYKcmyk(57.2%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.63, 41.61, -54.86)
CIE-LCHlch(22.63, 68.86, 307.18°)
OKLaboklab(35.17% 0.0475 -0.1579)
OKLCHoklch(35.17% 0.165 286.7)
XYZxyz(6.8540, 3.6930, 24.3915)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1E8A #6D8A1E
analogous
#1E378A #3B1E8A #711E8A
triadic
#3B1E8A #8A3B1E #1E8A3B
tetradic
#3B1E8A #8A1E37 #6D8A1E #1E8A71
square
#3B1E8A #8A1E37 #6D8A1E #1E8A71
split-complementary
#3B1E8A #8A711E #378A1E
monochromatic
#100825 #261358 #3B1E8A #5029BC #714BD8

Accessibility & contrast

On white

12.08
#3B1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3B1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1E8A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1E8A#FFFFFF#000000##FFFFFF
##3B1E8A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#173D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1e8a;
/* rgb */ color: rgb(59, 30, 138);
/* oklch */ color: oklch(35.2% 0.165 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ead',
    500: '#3b1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #3b1e8a;
$custom-light: #7b5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1e8a",
  "rgb": {
    "r": 59,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 256.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35167,
    "c": 0.16491,
    "h": 286.7
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#3B1E8A
secondary
#9CBA4A
accent
#E741BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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