#3E2899#3E2899

#3E2899 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.172 H 283.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#3E2899
RGBrgb(62, 40, 153)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 74%, 60%)
CMYKcmyk(59.5%, 73.9%, 0%, 40%)
CIE-LABlab(26.28, 41.31, -58.14)
CIE-LCHlch(26.28, 71.32, 305.40°)
OKLaboklab(38.26% 0.0405 -0.1675)
OKLCHoklch(38.26% 0.172 283.6)
XYZxyz(8.4934, 4.8411, 30.6177)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2899 #839928
analogous
#284B99 #3E2899 #762899
triadic
#3E2899 #993E28 #28993E
tetradic
#3E2899 #99284B #839928 #289976
square
#3E2899 #99284B #839928 #289976
split-complementary
#3E2899 #997628 #4B9928
monochromatic
#170F38 #2A1B68 #3E2899 #5235CA #7B65D7

Accessibility & contrast

On white

10.67
#3E2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2899
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2899#FFFFFF#000000##FFFFFF
##3E28991.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#06475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2899;
/* rgb */ color: rgb(62, 40, 153);
/* oklch */ color: oklch(38.3% 0.172 283.6);
Tailwind
colors: {
  custom: {
    50: '#7e64b8',
    500: '#3e2899',
    950: '#000000',
  },
}
SCSS
$custom: #3e2899;
$custom-light: #7e64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2899",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 251.681,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38258,
    "c": 0.1723,
    "h": 283.6
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#3E2899
secondary
#ABBD60
accent
#E246C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2899

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

Preview Lab → · Contrast checker → · Palette generator →

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