#3E2157#3E2157

#3E2157 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.096 H 306.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#3E2157
RGBrgb(62, 33, 87)
HSLhsl(272, 45%, 24%)
HSVhsv(272, 62%, 34%)
CMYKcmyk(28.7%, 62.1%, 0%, 65.9%)
CIE-LABlab(19.22, 25.64, -27.45)
CIE-LCHlch(19.22, 37.56, 313.06°)
OKLaboklab(31.45% 0.0571 -0.0773)
OKLCHoklch(31.45% 0.096 306.4)
XYZxyz(4.2504, 2.8000, 9.3315)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2157 #3A5721
analogous
#232157 #3E2157 #572155
triadic
#3E2157 #573E21 #21573E
tetradic
#3E2157 #572321 #3A5721 #215557
square
#3E2157 #572321 #3A5721 #215557
split-complementary
#3E2157 #555721 #215723
monochromatic
#100816 #1E102B #3E2157 #5E3283 #7D43B0

Accessibility & contrast

On white

13.46
#3E2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2157
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2157#FFFFFF#000000##FFFFFF
##3E21571.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E59
Deuteranopia (green-blind)
#182F56
Tritanopia (blue-blind)
#3A2B38
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e2157;
/* rgb */ color: rgb(62, 33, 87);
/* oklch */ color: oklch(31.5% 0.096 306.4);
Tailwind
colors: {
  custom: {
    50: '#755e87',
    500: '#3e2157',
    950: '#000000',
  },
}
SCSS
$custom: #3e2157;
$custom-light: #755e87;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2157",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 272.222,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31454,
    "c": 0.09615,
    "h": 306.4
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#3E2157
secondary
#678B49
accent
#D5538F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #3E2157

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

Preview Lab → · Contrast checker → · Palette generator →

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