#3E298F#3E298F

#3E298F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.159 H 285.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#3E298F
RGBrgb(62, 41, 143)
HSLhsl(252, 55%, 36%)
HSVhsv(252, 71%, 56%)
CMYKcmyk(56.6%, 71.3%, 0%, 43.9%)
CIE-LABlab(25.54, 37.63, -53.18)
CIE-LCHlch(25.54, 65.15, 305.28°)
OKLaboklab(37.45% 0.0417 -0.153)
OKLCHoklch(37.45% 0.159 285.3)
XYZxyz(7.7360, 4.5927, 26.4601)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E298F #7A8F29
analogous
#29478F #3E298F #71298F
triadic
#3E298F #8F3E29 #298F3E
tetradic
#3E298F #8F2947 #7A8F29 #298F71
square
#3E298F #8F2947 #7A8F29 #298F71
split-complementary
#3E298F #8F7129 #478F29
monochromatic
#150E30 #291B5F #3E298F #5337BF #7861D2

Accessibility & contrast

On white

10.95
#3E298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E298F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E298F#FFFFFF#000000##FFFFFF
##3E298F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#194459
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e298f;
/* rgb */ color: rgb(62, 41, 143);
/* oklch */ color: oklch(37.4% 0.159 285.3);
Tailwind
colors: {
  custom: {
    50: '#7c65b1',
    500: '#3e298f',
    950: '#000000',
  },
}
SCSS
$custom: #3e298f;
$custom-light: #7c65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e298f",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 252.353,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37447,
    "c": 0.15856,
    "h": 285.3
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#3E298F
secondary
#A5B75C
accent
#DF49C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3E298F

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

Preview Lab → · Contrast checker → · Palette generator →

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