#3E155A#3E155A

#3E155A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.119 H 307.9°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#3E155A
RGBrgb(62, 21, 90)
HSLhsl(276, 62%, 22%)
HSVhsv(276, 77%, 35%)
CMYKcmyk(31.1%, 76.7%, 0%, 64.7%)
CIE-LABlab(16.98, 33.19, -33.06)
CIE-LCHlch(16.98, 46.84, 315.11°)
OKLaboklab(29.91% 0.0729 -0.0938)
OKLCHoklch(29.91% 0.119 307.9)
XYZxyz(4.0998, 2.2987, 9.8986)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E155A #315A15
analogous
#1C155A #3E155A #5A1554
triadic
#3E155A #5A3E15 #155A3E
tetradic
#3E155A #5A1C15 #315A15 #15545A
square
#3E155A #5A1C15 #315A15 #15545A
split-complementary
#3E155A #545A15 #155A1C
monochromatic
#110619 #1C0928 #3E155A #60218C #822CBD

Accessibility & contrast

On white

14.39
#3E155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E155A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E155A#FFFFFF#000000##FFFFFF
##3E155A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#032A59
Tritanopia (blue-blind)
#3A2536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e155a;
/* rgb */ color: rgb(62, 21, 90);
/* oklch */ color: oklch(29.9% 0.119 307.9);
Tailwind
colors: {
  custom: {
    50: '#765689',
    500: '#3e155a',
    950: '#000000',
  },
}
SCSS
$custom: #3e155a;
$custom-light: #765689;
$custom-dark: #000000;
JSON
{
  "hex": "#3e155a",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 275.652,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29907,
    "c": 0.11877,
    "h": 307.9
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#3E155A
secondary
#5D9239
accent
#E54385
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E155A

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

Preview Lab → · Contrast checker → · Palette generator →

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