#3E298D#3E298D

#3E298D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.156 H 285.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3E298D
RGBrgb(62, 41, 141)
HSLhsl(253, 55%, 36%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(56%, 70.9%, 0%, 44.7%)
CIE-LABlab(25.36, 37.00, -52.24)
CIE-LCHlch(25.36, 64.02, 305.31°)
OKLaboklab(37.26% 0.0421 -0.1502)
OKLCHoklch(37.26% 0.156 285.7)
XYZxyz(7.5858, 4.5327, 25.6693)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E298D #788D29
analogous
#29468D #3E298D #70298D
triadic
#3E298D #8D3E29 #298D3E
tetradic
#3E298D #8D2946 #788D29 #298D70
square
#3E298D #8D2946 #788D29 #298D70
split-complementary
#3E298D #8D7029 #468D29
monochromatic
#140D2E #291B5E #3E298D #5337BC #7760D1

Accessibility & contrast

On white

11.01
#3E298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E298D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E298D#FFFFFF#000000##FFFFFF
##3E298D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#1B4358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e298d;
/* rgb */ color: rgb(62, 41, 141);
/* oklch */ color: oklch(37.3% 0.156 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c65af',
    500: '#3e298d',
    950: '#000000',
  },
}
SCSS
$custom: #3e298d;
$custom-light: #7c65af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e298d",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 252.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37261,
    "c": 0.156,
    "h": 285.7
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#3E298D
secondary
#A3B65B
accent
#DE4ABF
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E298D

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

Preview Lab → · Contrast checker → · Palette generator →

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