#3E2452#3E2452

#3E2452 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.6% C 0.084 H 308.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#3E2452
RGBrgb(62, 36, 82)
HSLhsl(274, 39%, 23%)
HSVhsv(274, 56%, 32%)
CMYKcmyk(24.4%, 56.1%, 0%, 67.8%)
CIE-LABlab(19.62, 22.40, -23.46)
CIE-LCHlch(19.62, 32.44, 313.67°)
OKLaboklab(31.64% 0.0522 -0.0657)
OKLCHoklch(31.64% 0.084 308.4)
XYZxyz(4.1402, 2.8951, 8.3217)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2452 #385224
analogous
#272452 #3E2452 #52244F
triadic
#3E2452 #523E24 #24523E
tetradic
#3E2452 #522724 #385224 #244F52
square
#3E2452 #522724 #385224 #244F52
split-complementary
#3E2452 #4F5224 #245227
monochromatic
#100915 #1E1127 #3E2452 #5E377D #7E49A7

Accessibility & contrast

On white

13.30
#3E2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3E2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2452
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2452#FFFFFF#000000##FFFFFF
##3E24521.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E54
Deuteranopia (green-blind)
#1F3051
Tritanopia (blue-blind)
#3B2C37
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e2452;
/* rgb */ color: rgb(62, 36, 82);
/* oklch */ color: oklch(31.6% 0.084 308.4);
Tailwind
colors: {
  custom: {
    50: '#755f83',
    500: '#3e2452',
    950: '#000000',
  },
}
SCSS
$custom: #3e2452;
$custom-light: #755f83;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2452",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 273.913,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31639,
    "c": 0.08391,
    "h": 308.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#3E2452
secondary
#65864C
accent
#CF598C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08050A
muted
#7B797C

Preview Lab

Preview with #3E2452

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

Preview Lab → · Contrast checker → · Palette generator →

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