#3E2168#3E2168

#3E2168 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.8% C 0.119 H 298.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3E2168
RGBrgb(62, 33, 104)
HSLhsl(265, 52%, 27%)
HSVhsv(265, 68%, 41%)
CMYKcmyk(40.4%, 68.3%, 0%, 59.2%)
CIE-LABlab(20.48, 30.44, -36.65)
CIE-LCHlch(20.48, 47.65, 309.71°)
OKLaboklab(32.77% 0.0564 -0.1044)
OKLCHoklch(32.77% 0.119 298.4)
XYZxyz(5.0285, 3.1113, 13.4296)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2168 #4B6821
analogous
#212868 #3E2168 #622168
triadic
#3E2168 #683E21 #21683E
tetradic
#3E2168 #682128 #4B6821 #216862
square
#3E2168 #682128 #4B6821 #216862
split-complementary
#3E2168 #686221 #286821
monochromatic
#0E0717 #22123A #3E2168 #5A3096 #7641C3

Accessibility & contrast

On white

12.95
#3E2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2168
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2168#FFFFFF#000000##FFFFFF
##3E21681.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#003166
Tritanopia (blue-blind)
#343141
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e2168;
/* rgb */ color: rgb(62, 33, 104);
/* oklch */ color: oklch(32.8% 0.119 298.4);
Tailwind
colors: {
  custom: {
    50: '#775e94',
    500: '#3e2168',
    950: '#000000',
  },
}
SCSS
$custom: #3e2168;
$custom-light: #775e94;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2168",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 264.507,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32772,
    "c": 0.11862,
    "h": 298.4
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#3E2168
secondary
#7A9C49
accent
#DB4DA1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E2168

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

Preview Lab → · Contrast checker → · Palette generator →

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