#3E135B#3E135B

#3E135B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.123 H 307.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#3E135B
RGBrgb(62, 19, 91)
HSLhsl(276, 65%, 22%)
HSVhsv(276, 79%, 36%)
CMYKcmyk(31.9%, 79.1%, 0%, 64.3%)
CIE-LABlab(16.73, 34.40, -34.15)
CIE-LCHlch(16.73, 48.47, 315.21°)
OKLaboklab(29.75% 0.075 -0.0969)
OKLCHoklch(29.75% 0.123 307.7)
XYZxyz(4.1074, 2.2453, 10.1125)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E135B #305B13
analogous
#1A135B #3E135B #5B1354
triadic
#3E135B #5B3E13 #135B3E
tetradic
#3E135B #5B1A13 #305B13 #13545B
square
#3E135B #5B1A13 #305B13 #13545B
split-complementary
#3E135B #545B13 #135B1A
monochromatic
#110519 #1C0828 #3E135B #601E8E #8328C0

Accessibility & contrast

On white

14.49
#3E135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3E135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E135B
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E135B#FFFFFF#000000##FFFFFF
##3E135B1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#392436
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e135b;
/* rgb */ color: rgb(62, 19, 91);
/* oklch */ color: oklch(29.8% 0.123 307.7);
Tailwind
colors: {
  custom: {
    50: '#77558a',
    500: '#3e135b',
    950: '#000000',
  },
}
SCSS
$custom: #3e135b;
$custom-light: #77558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e135b",
  "rgb": {
    "r": 62,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 275.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2975,
    "c": 0.12254,
    "h": 307.7
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#3E135B
secondary
#5C9337
accent
#E83F83
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E135B

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

Preview Lab → · Contrast checker → · Palette generator →

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