#3B135B#3B135B

#3B135B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.122 H 305.3°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#3B135B
RGBrgb(59, 19, 91)
HSLhsl(273, 65%, 22%)
HSVhsv(273, 79%, 36%)
CMYKcmyk(35.2%, 79.1%, 0%, 64.3%)
CIE-LABlab(16.26, 33.76, -34.93)
CIE-LCHlch(16.26, 48.58, 314.03°)
OKLaboklab(29.32% 0.0703 -0.0993)
OKLCHoklch(29.32% 0.122 305.3)
XYZxyz(3.9244, 2.1509, 10.1039)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B135B #335B13
analogous
#17135B #3B135B #5B1357
triadic
#3B135B #5B3B13 #135B3B
tetradic
#3B135B #5B1713 #335B13 #13575B
square
#3B135B #5B1713 #335B13 #13575B
split-complementary
#3B135B #575B13 #135B17
monochromatic
#100519 #1A0828 #3B135B #5C1E8E #7D28C0

Accessibility & contrast

On white

14.68
#3B135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3B135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B135B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B135B#FFFFFF#000000##FFFFFF
##3B135B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#352536
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b135b;
/* rgb */ color: rgb(59, 19, 91);
/* oklch */ color: oklch(29.3% 0.122 305.3);
Tailwind
colors: {
  custom: {
    50: '#75558a',
    500: '#3b135b',
    950: '#000000',
  },
}
SCSS
$custom: #3b135b;
$custom-light: #75558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b135b",
  "rgb": {
    "r": 59,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 273.333,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29323,
    "c": 0.1217,
    "h": 305.3
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#3B135B
secondary
#609337
accent
#E83F8B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B135B

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

Preview Lab → · Contrast checker → · Palette generator →

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