#3E299D#3E299D

#3E299D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.176 H 282.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#3E299D
RGBrgb(62, 41, 157)
HSLhsl(251, 59%, 39%)
HSVhsv(251, 74%, 62%)
CMYKcmyk(60.5%, 73.9%, 0%, 38.4%)
CIE-LABlab(26.86, 42.00, -59.63)
CIE-LCHlch(26.86, 72.93, 305.16°)
OKLaboklab(38.79% 0.0388 -0.1718)
OKLCHoklch(38.79% 0.176 282.7)
XYZxyz(8.8635, 5.0437, 32.3982)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E299D #889D29
analogous
#294E9D #3E299D #78299D
triadic
#3E299D #9D3E29 #299D3E
tetradic
#3E299D #9D294E #889D29 #299D78
square
#3E299D #9D294E #889D29 #299D78
split-complementary
#3E299D #9D7829 #4E9D29
monochromatic
#18103C #2B1C6C #3E299D #5338CB #7D69D8

Accessibility & contrast

On white

10.45
#3E299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3E299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E299D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E299D#FFFFFF#000000##FFFFFF
##3E299D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e299d;
/* rgb */ color: rgb(62, 41, 157);
/* oklch */ color: oklch(38.8% 0.176 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f65bb',
    500: '#3e299d',
    950: '#000000',
  },
}
SCSS
$custom: #3e299d;
$custom-light: #7f65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e299d",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 250.862,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38787,
    "c": 0.17617,
    "h": 282.7
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#3E299D
secondary
#AEBE64
accent
#E246C6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E299D

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

Preview Lab → · Contrast checker → · Palette generator →

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