#3E236E#3E236E

#3E236E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.6% C 0.124 H 295.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3E236E
RGBrgb(62, 35, 110)
HSLhsl(262, 52%, 28%)
HSVhsv(262, 68%, 43%)
CMYKcmyk(43.6%, 68.2%, 0%, 56.9%)
CIE-LABlab(21.40, 31.02, -39.06)
CIE-LCHlch(21.40, 49.88, 308.45°)
OKLaboklab(33.59% 0.0532 -0.1115)
OKLCHoklch(33.59% 0.124 295.5)
XYZxyz(5.4014, 3.3519, 15.1112)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E236E #536E23
analogous
#232D6E #3E236E #63236E
triadic
#3E236E #6E3E23 #236E3E
tetradic
#3E236E #6E232D #536E23 #236E63
square
#3E236E #6E232D #536E23 #236E63
split-complementary
#3E236E #6E6323 #2D6E23
monochromatic
#0D0717 #241440 #3E236E #58329C #7447C4

Accessibility & contrast

On white

12.57
#3E236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E236E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E236E#FFFFFF#000000##FFFFFF
##3E236E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#323445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e236e;
/* rgb */ color: rgb(62, 35, 110);
/* oklch */ color: oklch(33.6% 0.124 295.5);
Tailwind
colors: {
  custom: {
    50: '#786098',
    500: '#3e236e',
    950: '#000000',
  },
}
SCSS
$custom: #3e236e;
$custom-light: #786098;
$custom-dark: #000000;
JSON
{
  "hex": "#3e236e",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 261.6,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.12354,
    "h": 295.5
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#3E236E
secondary
#82A14C
accent
#DB4DA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E236E

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

Preview Lab → · Contrast checker → · Palette generator →

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