#3B1EA7#3B1EA7

#3B1EA7 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.199 H 281.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3B1EA7
RGBrgb(59, 30, 167)
HSLhsl(253, 70%, 39%)
HSVhsv(253, 82%, 65%)
CMYKcmyk(64.7%, 82%, 0%, 34.5%)
CIE-LABlab(25.71, 50.14, -67.61)
CIE-LCHlch(25.71, 84.17, 306.56°)
OKLaboklab(38.22% 0.0384 -0.1951)
OKLCHoklch(38.22% 0.199 281.1)
XYZxyz(9.2408, 4.6477, 36.9619)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1EA7 #8AA71E
analogous
#1E45A7 #3B1EA7 #7F1EA7
triadic
#3B1EA7 #A73B1E #1EA73B
tetradic
#3B1EA7 #A71E45 #8AA71E #1EA77F
square
#3B1EA7 #A71E45 #8AA71E #1EA77F
split-complementary
#3B1EA7 #A77F1E #45A71E
monochromatic
#160B3F #291573 #3B1EA7 #4F2AD9 #795DE2

Accessibility & contrast

On white

10.88
#3B1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3B1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1EA7
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1EA7#FFFFFF#000000##FFFFFF
##3B1EA71.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b1ea7;
/* rgb */ color: rgb(59, 30, 167);
/* oklch */ color: oklch(38.2% 0.199 281.1);
Tailwind
colors: {
  custom: {
    50: '#805fc2',
    500: '#3b1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3b1ea7;
$custom-light: #805fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1ea7",
  "rgb": {
    "r": 59,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 252.701,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38223,
    "c": 0.19886,
    "h": 281.1
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#3B1EA7
secondary
#AFC65B
accent
#EC3BC7
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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