#3E228E#3E228E

#3E228E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.165 H 286.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3E228E
RGBrgb(62, 34, 142)
HSLhsl(256, 61%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(56.3%, 76.1%, 0%, 44.3%)
CIE-LABlab(24.07, 41.18, -54.98)
CIE-LCHlch(24.07, 68.69, 306.83°)
OKLaboklab(36.37% 0.0479 -0.1582)
OKLCHoklch(36.37% 0.165 286.9)
XYZxyz(7.4397, 4.1208, 25.9893)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E228E #728E22
analogous
#223C8E #3E228E #74228E
triadic
#3E228E #8E3E22 #228E3E
tetradic
#3E228E #8E223C #728E22 #228E74
square
#3E228E #8E223C #728E22 #228E74
split-complementary
#3E228E #8E7422 #3C8E22
monochromatic
#130A2B #28165D #3E228E #542EBF #7654D6

Accessibility & contrast

On white

11.51
#3E228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E228E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E228E#FFFFFF#000000##FFFFFF
##3E228E1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1B4056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e228e;
/* rgb */ color: rgb(62, 34, 142);
/* oklch */ color: oklch(36.4% 0.165 286.9);
Tailwind
colors: {
  custom: {
    50: '#7d60b0',
    500: '#3e228e',
    950: '#000000',
  },
}
SCSS
$custom: #3e228e;
$custom-light: #7d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e228e",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 255.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36372,
    "c": 0.1653,
    "h": 286.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#3E228E
secondary
#9FBA52
accent
#E443BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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