#3B1A9D#3B1A9D

#3B1A9D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.191 H 283.3°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3B1A9D
RGBrgb(59, 26, 157)
HSLhsl(255, 72%, 36%)
HSVhsv(255, 83%, 62%)
CMYKcmyk(62.4%, 83.4%, 0%, 38.4%)
CIE-LABlab(24.01, 49.00, -64.34)
CIE-LCHlch(24.01, 80.87, 307.29°)
OKLaboklab(36.73% 0.0438 -0.1855)
OKLCHoklch(36.73% 0.191 283.3)
XYZxyz(8.2569, 4.1023, 32.2485)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A9D #7C9D1A
analogous
#1A3A9D #3B1A9D #7C1A9D
triadic
#3B1A9D #9D3B1A #1A9D3B
tetradic
#3B1A9D #9D1A3A #7C9D1A #1A9D7C
square
#3B1A9D #9D1A3A #7C9D1A #1A9D7C
split-complementary
#3B1A9D #9D7C1A #3A9D1A
monochromatic
#140934 #271168 #3B1A9D #4F23D2 #744FE2

Accessibility & contrast

On white

11.53
#3B1A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1A9D
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A9D#FFFFFF#000000##FFFFFF
##3B1A9D1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b1a9d;
/* rgb */ color: rgb(59, 26, 157);
/* oklch */ color: oklch(36.7% 0.191 283.3);
Tailwind
colors: {
  custom: {
    50: '#7f5dbb',
    500: '#3b1a9d',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a9d;
$custom-light: #7f5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a9d",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 255.115,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36725,
    "c": 0.19064,
    "h": 283.3
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#3B1A9D
secondary
#A7C44E
accent
#EE39C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3B1A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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