#3B1895#3B1895

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

Color values

HEX#3B1895
RGBrgb(59, 24, 149)
HSLhsl(257, 72%, 34%)
HSVhsv(257, 84%, 58%)
CMYKcmyk(60.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.84, 47.57, -61.36)
CIE-LCHlch(22.84, 77.64, 307.79°)
OKLaboklab(35.66% 0.0478 -0.1768)
OKLCHoklch(35.66% 0.183 285.1)
XYZxyz(7.5534, 3.7525, 28.7542)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1895 #729518
analogous
#183495 #3B1895 #7A1895
triadic
#3B1895 #953B18 #18953B
tetradic
#3B1895 #951834 #729518 #18957A
square
#3B1895 #951834 #729518 #18957A
split-complementary
#3B1895 #957A18 #349518
monochromatic
#11072C #261060 #3B1895 #5020CA #7246E1

Accessibility & contrast

On white

12.00
#3B1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3B1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1895
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1895#FFFFFF#000000##FFFFFF
##3B18951.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#023F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1895;
/* rgb */ color: rgb(59, 24, 149);
/* oklch */ color: oklch(35.7% 0.183 285.1);
Tailwind
colors: {
  custom: {
    50: '#7d5bb5',
    500: '#3b1895',
    950: '#000000',
  },
}
SCSS
$custom: #3b1895;
$custom-light: #7d5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1895",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 256.8,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35657,
    "c": 0.18314,
    "h": 285.1
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#3B1895
secondary
#A0C246
accent
#EF39BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1895

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

Preview Lab → · Contrast checker → · Palette generator →

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