#3E2268#3E2268

#3E2268 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.117 H 298.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3E2268
RGBrgb(62, 34, 104)
HSLhsl(264, 51%, 27%)
HSVhsv(264, 67%, 41%)
CMYKcmyk(40.4%, 67.3%, 0%, 59.2%)
CIE-LABlab(20.70, 29.85, -36.30)
CIE-LCHlch(20.70, 47.00, 309.43°)
OKLaboklab(32.93% 0.0551 -0.1033)
OKLCHoklch(32.93% 0.117 298.1)
XYZxyz(5.0567, 3.1676, 13.4390)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2268 #4C6822
analogous
#222968 #3E2268 #612268
triadic
#3E2268 #683E22 #22683E
tetradic
#3E2268 #682229 #4C6822 #226861
square
#3E2268 #682229 #4C6822 #226861
split-complementary
#3E2268 #686122 #296822
monochromatic
#0E0817 #23133A #3E2268 #593196 #7643C2

Accessibility & contrast

On white

12.86
#3E2268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E2268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2268
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2268#FFFFFF#000000##FFFFFF
##3E22681.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#003166
Tritanopia (blue-blind)
#343241
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e2268;
/* rgb */ color: rgb(62, 34, 104);
/* oklch */ color: oklch(32.9% 0.117 298.1);
Tailwind
colors: {
  custom: {
    50: '#775f94',
    500: '#3e2268',
    950: '#000000',
  },
}
SCSS
$custom: #3e2268;
$custom-light: #775f94;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2268",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 264,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3293,
    "c": 0.11712,
    "h": 298.1
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#3E2268
secondary
#7B9C4A
accent
#DA4EA2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E2268

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

Preview Lab → · Contrast checker → · Palette generator →

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