#3E145F#3E145F

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

Color values

HEX#3E145F
RGBrgb(62, 20, 95)
HSLhsl(274, 65%, 23%)
HSVhsv(274, 79%, 37%)
CMYKcmyk(34.7%, 78.9%, 0%, 62.7%)
CIE-LABlab(17.23, 34.96, -36.00)
CIE-LCHlch(17.23, 50.18, 314.16°)
OKLaboklab(30.21% 0.073 -0.1024)
OKLCHoklch(30.21% 0.126 305.5)
XYZxyz(4.3019, 2.3507, 11.0514)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E145F #355F14
analogous
#19145F #3E145F #5F145A
triadic
#3E145F #5F3E14 #145F3E
tetradic
#3E145F #5F1914 #355F14 #145A5F
square
#3E145F #5F1914 #355F14 #145A5F
split-complementary
#3E145F #5A5F14 #145F19
monochromatic
#100519 #1D092C #3E145F #5F1F92 #8029C4

Accessibility & contrast

On white

14.28
#3E145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E145F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E145F#FFFFFF#000000##FFFFFF
##3E145F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#382638
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e145f;
/* rgb */ color: rgb(62, 20, 95);
/* oklch */ color: oklch(30.2% 0.126 305.5);
Tailwind
colors: {
  custom: {
    50: '#77568d',
    500: '#3e145f',
    950: '#000000',
  },
}
SCSS
$custom: #3e145f;
$custom-light: #77568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e145f",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 273.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30213,
    "c": 0.12577,
    "h": 305.5
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#3E145F
secondary
#629738
accent
#E8408A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E145F

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

Preview Lab → · Contrast checker → · Palette generator →

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