#3E2185#3E2185

#3E2185 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.155 H 289.2°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#3E2185
RGBrgb(62, 33, 133)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 52%)
CMYKcmyk(53.4%, 75.2%, 0%, 47.8%)
CIE-LABlab(23.02, 39.02, -51.08)
CIE-LCHlch(23.02, 64.28, 307.37°)
OKLaboklab(35.37% 0.051 -0.1468)
OKLCHoklch(35.37% 0.155 289.2)
XYZxyz(6.7629, 3.8050, 22.5638)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2185 #688521
analogous
#213685 #3E2185 #702185
triadic
#3E2185 #853E21 #21853E
tetradic
#3E2185 #852136 #688521 #218570
square
#3E2185 #852136 #688521 #218570
split-complementary
#3E2185 #857021 #368521
monochromatic
#100923 #271554 #3E2185 #552DB6 #744DD3

Accessibility & contrast

On white

11.93
#3E2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2185
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2185#FFFFFF#000000##FFFFFF
##3E21851.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#243C51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2185;
/* rgb */ color: rgb(62, 33, 133);
/* oklch */ color: oklch(35.4% 0.155 289.2);
Tailwind
colors: {
  custom: {
    50: '#7b5fa9',
    500: '#3e2185',
    950: '#000000',
  },
}
SCSS
$custom: #3e2185;
$custom-light: #7b5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2185",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 257.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35367,
    "c": 0.1554,
    "h": 289.2
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#3E2185
secondary
#97B64C
accent
#E344B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2185

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

Preview Lab → · Contrast checker → · Palette generator →

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