#3E1752#3E1752

#3E1752 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.107 H 312.1°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#3E1752
RGBrgb(62, 23, 82)
HSLhsl(280, 56%, 21%)
HSVhsv(280, 72%, 32%)
CMYKcmyk(24.4%, 72%, 0%, 67.8%)
CIE-LABlab(16.73, 30.13, -28.08)
CIE-LCHlch(16.73, 41.18, 317.02°)
OKLaboklab(29.53% 0.0714 -0.0791)
OKLCHoklch(29.53% 0.107 312.1)
XYZxyz(3.8157, 2.2462, 8.2136)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1752 #2B5217
analogous
#201752 #3E1752 #521748
triadic
#3E1752 #523E17 #17523E
tetradic
#3E1752 #522017 #2B5217 #174852
square
#3E1752 #522017 #2B5217 #174852
split-complementary
#3E1752 #485217 #175220
monochromatic
#120718 #1A0A22 #3E1752 #622482 #8632B2

Accessibility & contrast

On white

14.49
#3E1752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3E1752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1752
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1752#FFFFFF#000000##FFFFFF
##3E17521.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#122A51
Tritanopia (blue-blind)
#3C2332
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e1752;
/* rgb */ color: rgb(62, 23, 82);
/* oklch */ color: oklch(29.5% 0.107 312.1);
Tailwind
colors: {
  custom: {
    50: '#765783',
    500: '#3e1752',
    950: '#000000',
  },
}
SCSS
$custom: #3e1752;
$custom-light: #765783;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1752",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 279.661,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29528,
    "c": 0.10659,
    "h": 312.1
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#3E1752
secondary
#56893C
accent
#DF487C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E1752

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

Preview Lab → · Contrast checker → · Palette generator →

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