#3E155B#3E155B

#3E155B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.120 H 307.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#3E155B
RGBrgb(62, 21, 91)
HSLhsl(275, 63%, 22%)
HSVhsv(275, 77%, 36%)
CMYKcmyk(31.9%, 76.9%, 0%, 64.3%)
CIE-LABlab(17.06, 33.44, -33.60)
CIE-LCHlch(17.06, 47.41, 314.87°)
OKLaboklab(29.99% 0.0727 -0.0953)
OKLCHoklch(29.99% 0.12 307.3)
XYZxyz(4.1427, 2.3158, 10.1243)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E155B #325B15
analogous
#1B155B #3E155B #5B1555
triadic
#3E155B #5B3E15 #155B3E
tetradic
#3E155B #5B1B15 #325B15 #15555B
square
#3E155B #5B1B15 #325B15 #15555B
split-complementary
#3E155B #555B15 #155B1B
monochromatic
#110619 #1C0A29 #3E155B #60208D #822CBE

Accessibility & contrast

On white

14.35
#3E155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3E155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E155B
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E155B#FFFFFF#000000##FFFFFF
##3E155B1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#012A5A
Tritanopia (blue-blind)
#392536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e155b;
/* rgb */ color: rgb(62, 21, 91);
/* oklch */ color: oklch(30.0% 0.120 307.3);
Tailwind
colors: {
  custom: {
    50: '#77578a',
    500: '#3e155b',
    950: '#000000',
  },
}
SCSS
$custom: #3e155b;
$custom-light: #77578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e155b",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 275.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2999,
    "c": 0.11992,
    "h": 307.3
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#3E155B
secondary
#5E9239
accent
#E64286
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E155B

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

Preview Lab → · Contrast checker → · Palette generator →

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