#3E256F#3E256F

#3E256F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.122 H 294.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3E256F
RGBrgb(62, 37, 111)
HSLhsl(260, 50%, 29%)
HSVhsv(260, 67%, 44%)
CMYKcmyk(44.1%, 66.7%, 0%, 56.5%)
CIE-LABlab(21.93, 30.12, -38.86)
CIE-LCHlch(21.93, 49.16, 307.78°)
OKLaboklab(33.99% 0.0507 -0.1109)
OKLCHoklch(33.99% 0.122 294.6)
XYZxyz(5.5167, 3.4948, 15.4198)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E256F #566F25
analogous
#25316F #3E256F #63256F
triadic
#3E256F #6F3E25 #256F3E
tetradic
#3E256F #6F2531 #566F25 #256F63
square
#3E256F #6F2531 #566F25 #256F63
split-complementary
#3E256F #6F6325 #316F25
monochromatic
#0D0817 #241641 #3E256F #58349D #744BC3

Accessibility & contrast

On white

12.36
#3E256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E256F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E256F#FFFFFF#000000##FFFFFF
##3E256F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#313646
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e256f;
/* rgb */ color: rgb(62, 37, 111);
/* oklch */ color: oklch(34.0% 0.122 294.6);
Tailwind
colors: {
  custom: {
    50: '#786199',
    500: '#3e256f',
    950: '#000000',
  },
}
SCSS
$custom: #3e256f;
$custom-light: #786199;
$custom-dark: #000000;
JSON
{
  "hex": "#3e256f",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 260.27,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.12193,
    "h": 294.6
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#3E256F
secondary
#86A24E
accent
#DA4EAA
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E256F

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

Preview Lab → · Contrast checker → · Palette generator →

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