#3E145B#3E145B

#3E145B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.121 H 307.5°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3E145B
RGBrgb(62, 20, 91)
HSLhsl(275, 64%, 22%)
HSVhsv(275, 78%, 36%)
CMYKcmyk(31.9%, 78%, 0%, 64.3%)
CIE-LABlab(16.89, 33.93, -33.88)
CIE-LCHlch(16.89, 47.95, 315.04°)
OKLaboklab(29.87% 0.0739 -0.0962)
OKLCHoklch(29.87% 0.121 307.5)
XYZxyz(4.1247, 2.2798, 10.1183)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E145B #315B14
analogous
#1B145B #3E145B #5B1455
triadic
#3E145B #5B3E14 #145B3E
tetradic
#3E145B #5B1B14 #315B14 #14555B
square
#3E145B #5B1B14 #315B14 #14555B
split-complementary
#3E145B #555B14 #145B1B
monochromatic
#110619 #1C0929 #3E145B #601F8D #822ABF

Accessibility & contrast

On white

14.42
#3E145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E145B
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E145B#FFFFFF#000000##FFFFFF
##3E145B1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e145b;
/* rgb */ color: rgb(62, 20, 91);
/* oklch */ color: oklch(29.9% 0.121 307.5);
Tailwind
colors: {
  custom: {
    50: '#77568a',
    500: '#3e145b',
    950: '#000000',
  },
}
SCSS
$custom: #3e145b;
$custom-light: #77568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e145b",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 275.493,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29868,
    "c": 0.12125,
    "h": 307.5
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#3E145B
secondary
#5D9338
accent
#E74185
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E145B

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

Preview Lab → · Contrast checker → · Palette generator →

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