#3B158E#3B158E

#3B158E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.178 H 287.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3B158E
RGBrgb(59, 21, 142)
HSLhsl(259, 74%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(58.5%, 85.2%, 0%, 44.3%)
CIE-LABlab(21.65, 46.83, -58.98)
CIE-LCHlch(21.65, 75.31, 308.45°)
OKLaboklab(34.61% 0.052 -0.1698)
OKLCHoklch(34.61% 0.178 287)
XYZxyz(6.9528, 3.4187, 25.8795)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B158E #688E15
analogous
#152C8E #3B158E #78158E
triadic
#3B158E #8E3B15 #158E3B
tetradic
#3B158E #8E152C #688E15 #158E78
square
#3B158E #8E152C #688E15 #158E78
split-complementary
#3B158E #8E7815 #2C8E15
monochromatic
#0F0523 #250D59 #3B158E #511DC3 #703BE2

Accessibility & contrast

On white

12.47
#3B158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3B158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B158E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B158E#FFFFFF#000000##FFFFFF
##3B158E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#123B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b158e;
/* rgb */ color: rgb(59, 21, 142);
/* oklch */ color: oklch(34.6% 0.178 287.0);
Tailwind
colors: {
  custom: {
    50: '#7c59b0',
    500: '#3b158e',
    950: '#000000',
  },
}
SCSS
$custom: #3b158e;
$custom-light: #7c59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b158e",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 258.843,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.17761,
    "h": 287
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#3B158E
secondary
#98C23D
accent
#F137B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B158E

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

Preview Lab → · Contrast checker → · Palette generator →

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