#3E2198#3E2198

#3E2198 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.178 H 284.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3E2198
RGBrgb(62, 33, 152)
HSLhsl(255, 64%, 36%)
HSVhsv(255, 78%, 60%)
CMYKcmyk(59.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.88, 44.67, -59.81)
CIE-LCHlch(24.88, 74.66, 306.75°)
OKLaboklab(37.25% 0.0459 -0.1723)
OKLCHoklch(37.25% 0.178 284.9)
XYZxyz(8.1962, 4.3783, 30.1129)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2198 #7B9821
analogous
#214098 #3E2198 #7A2198
triadic
#3E2198 #983E21 #21983E
tetradic
#3E2198 #982140 #7B9821 #21987A
square
#3E2198 #982140 #7B9821 #21987A
split-complementary
#3E2198 #987A21 #409821
monochromatic
#150B33 #291666 #3E2198 #532CCA #7859DB

Accessibility & contrast

On white

11.20
#3E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2198
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2198#FFFFFF#000000##FFFFFF
##3E21981.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#0A435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2198;
/* rgb */ color: rgb(62, 33, 152);
/* oklch */ color: oklch(37.2% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3e2198',
    950: '#000000',
  },
}
SCSS
$custom: #3e2198;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2198",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 254.622,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.17834,
    "h": 284.9
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#3E2198
secondary
#A5BF56
accent
#E740BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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