#3B158F#3B158F

#3B158F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.179 H 286.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3B158F
RGBrgb(59, 21, 143)
HSLhsl(259, 74%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(58.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(21.76, 47.11, -59.42)
CIE-LCHlch(21.76, 75.83, 308.41°)
OKLaboklab(34.72% 0.0516 -0.1711)
OKLCHoklch(34.72% 0.179 286.8)
XYZxyz(7.0282, 3.4489, 26.2766)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B158F #698F15
analogous
#152C8F #3B158F #78158F
triadic
#3B158F #8F3B15 #158F3B
tetradic
#3B158F #8F152C #698F15 #158F78
square
#3B158F #8F152C #698F15 #158F78
split-complementary
#3B158F #8F7815 #2C8F15
monochromatic
#0F0524 #250D5A #3B158F #511DC4 #703CE2

Accessibility & contrast

On white

12.43
#3B158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3B158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B158F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B158F#FFFFFF#000000##FFFFFF
##3B158F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#103B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b158f;
/* rgb */ color: rgb(59, 21, 143);
/* oklch */ color: oklch(34.7% 0.179 286.8);
Tailwind
colors: {
  custom: {
    50: '#7c59b1',
    500: '#3b158f',
    950: '#000000',
  },
}
SCSS
$custom: #3b158f;
$custom-light: #7c59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b158f",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 258.689,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34721,
    "c": 0.17874,
    "h": 286.8
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#3B158F
secondary
#99C23E
accent
#F137B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B158F

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

Preview Lab → · Contrast checker → · Palette generator →

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