#3E299B#3E299B

#3E299B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.174 H 283.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3E299B
RGBrgb(62, 41, 155)
HSLhsl(251, 58%, 38%)
HSVhsv(251, 74%, 61%)
CMYKcmyk(60%, 73.5%, 0%, 39.2%)
CIE-LABlab(26.67, 41.38, -58.72)
CIE-LCHlch(26.67, 71.84, 305.17°)
OKLaboklab(38.59% 0.0393 -0.1692)
OKLCHoklch(38.59% 0.174 283.1)
XYZxyz(8.6941, 4.9760, 31.5063)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E299B #869B29
analogous
#294D9B #3E299B #77299B
triadic
#3E299B #9B3E29 #299B3E
tetradic
#3E299B #9B294D #869B29 #299B77
square
#3E299B #9B294D #869B29 #299B77
split-complementary
#3E299B #9B7729 #4D9B29
monochromatic
#170F3A #2B1C6B #3E299B #5237CA #7C67D7

Accessibility & contrast

On white

10.52
#3E299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E299B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E299B#FFFFFF#000000##FFFFFF
##3E299B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#01485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e299b;
/* rgb */ color: rgb(62, 41, 155);
/* oklch */ color: oklch(38.6% 0.174 283.1);
Tailwind
colors: {
  custom: {
    50: '#7e65ba',
    500: '#3e299b',
    950: '#000000',
  },
}
SCSS
$custom: #3e299b;
$custom-light: #7e65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3e299b",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 251.053,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38592,
    "c": 0.17368,
    "h": 283.1
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#3E299B
secondary
#ACBD63
accent
#E146C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E299B

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

Preview Lab → · Contrast checker → · Palette generator →

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