#3E155E#3E155E

#3E155E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.123 H 305.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#3E155E
RGBrgb(62, 21, 94)
HSLhsl(274, 63%, 23%)
HSVhsv(274, 78%, 37%)
CMYKcmyk(34%, 77.7%, 0%, 63.1%)
CIE-LABlab(17.31, 34.22, -35.20)
CIE-LCHlch(17.31, 49.09, 314.19°)
OKLaboklab(30.25% 0.0722 -0.1)
OKLCHoklch(30.25% 0.123 305.8)
XYZxyz(4.2747, 2.3687, 10.8195)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E155E #355E15
analogous
#1A155E #3E155E #5E1559
triadic
#3E155E #5E3E15 #155E3E
tetradic
#3E155E #5E1A15 #355E15 #15595E
square
#3E155E #5E1A15 #355E15 #15595E
split-complementary
#3E155E #595E15 #155E1A
monochromatic
#100619 #1D0A2C #3E155E #5F2090 #802BC2

Accessibility & contrast

On white

14.25
#3E155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E155E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E155E#FFFFFF#000000##FFFFFF
##3E155E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#382638
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e155e;
/* rgb */ color: rgb(62, 21, 94);
/* oklch */ color: oklch(30.2% 0.123 305.8);
Tailwind
colors: {
  custom: {
    50: '#77578c',
    500: '#3e155e',
    950: '#000000',
  },
}
SCSS
$custom: #3e155e;
$custom-light: #77578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3e155e",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 273.699,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.12336,
    "h": 305.8
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#3E155E
secondary
#629539
accent
#E7418A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E155E

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

Preview Lab → · Contrast checker → · Palette generator →

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