#3E156F#3E156F

#3E156F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.143 H 298.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3E156F
RGBrgb(62, 21, 111)
HSLhsl(267, 68%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(44.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.83, 38.72, -43.89)
CIE-LCHlch(18.83, 58.53, 311.42°)
OKLaboklab(31.79% 0.0678 -0.1256)
OKLCHoklch(31.79% 0.143 298.4)
XYZxyz(5.1233, 2.7081, 15.2886)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E156F #466F15
analogous
#15196F #3E156F #6B156F
triadic
#3E156F #6F3E15 #156F3E
tetradic
#3E156F #6F1519 #466F15 #156F6B
square
#3E156F #6F1519 #466F15 #156F6B
split-complementary
#3E156F #6F6B15 #196F15
monochromatic
#0E051A #210B3C #3E156F #5B1FA2 #7728D6

Accessibility & contrast

On white

13.62
#3E156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E156F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E156F#FFFFFF#000000##FFFFFF
##3E156F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#322D42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e156f;
/* rgb */ color: rgb(62, 21, 111);
/* oklch */ color: oklch(31.8% 0.143 298.4);
Tailwind
colors: {
  custom: {
    50: '#795899',
    500: '#3e156f',
    950: '#000000',
  },
}
SCSS
$custom: #3e156f;
$custom-light: #795899;
$custom-dark: #000000;
JSON
{
  "hex": "#3e156f",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 267.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31789,
    "c": 0.14274,
    "h": 298.4
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#3E156F
secondary
#75A53A
accent
#EB3D9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E156F

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

Preview Lab → · Contrast checker → · Palette generator →

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