#3E2898#3E2898

#3E2898 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.171 H 283.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3E2898
RGBrgb(62, 40, 152)
HSLhsl(252, 58%, 38%)
HSVhsv(252, 74%, 60%)
CMYKcmyk(59.2%, 73.7%, 0%, 40.4%)
CIE-LABlab(26.18, 41.00, -57.68)
CIE-LCHlch(26.18, 70.77, 305.40°)
OKLaboklab(38.16% 0.0407 -0.1661)
OKLCHoklch(38.16% 0.171 283.8)
XYZxyz(8.4112, 4.8082, 30.1845)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2898 #829828
analogous
#284A98 #3E2898 #762898
triadic
#3E2898 #983E28 #28983E
tetradic
#3E2898 #98284A #829828 #289876
square
#3E2898 #98284A #829828 #289876
split-complementary
#3E2898 #987628 #4A9828
monochromatic
#160F37 #2A1B68 #3E2898 #5235C8 #7B64D6

Accessibility & contrast

On white

10.70
#3E2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2898
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2898#FFFFFF#000000##FFFFFF
##3E28981.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#09475D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2898;
/* rgb */ color: rgb(62, 40, 152);
/* oklch */ color: oklch(38.2% 0.171 283.8);
Tailwind
colors: {
  custom: {
    50: '#7e64b7',
    500: '#3e2898',
    950: '#000000',
  },
}
SCSS
$custom: #3e2898;
$custom-light: #7e64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2898",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 251.786,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3816,
    "c": 0.17106,
    "h": 283.8
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E2898

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

Preview Lab → · Contrast checker → · Palette generator →

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