#3E238E#3E238E

#3E238E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.164 H 286.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3E238E
RGBrgb(62, 35, 142)
HSLhsl(255, 60%, 35%)
HSVhsv(255, 75%, 56%)
CMYKcmyk(56.3%, 75.4%, 0%, 44.3%)
CIE-LABlab(24.25, 40.65, -54.67)
CIE-LCHlch(24.25, 68.13, 306.63°)
OKLaboklab(36.5% 0.0471 -0.1573)
OKLCHoklch(36.5% 0.164 286.7)
XYZxyz(7.4687, 4.1788, 25.9990)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E238E #738E23
analogous
#233E8E #3E238E #74238E
triadic
#3E238E #8E3E23 #238E3E
tetradic
#3E238E #8E233E #738E23 #238E74
square
#3E238E #8E233E #738E23 #238E74
split-complementary
#3E238E #8E7423 #3E8E23
monochromatic
#130B2C #29175D #3E238E #532FBF #7656D5

Accessibility & contrast

On white

11.44
#3E238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E238E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E238E#FFFFFF#000000##FFFFFF
##3E238E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#1B4056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e238e;
/* rgb */ color: rgb(62, 35, 142);
/* oklch */ color: oklch(36.5% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#7d61b0',
    500: '#3e238e',
    950: '#000000',
  },
}
SCSS
$custom: #3e238e;
$custom-light: #7d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e238e",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 255.14,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36504,
    "c": 0.16421,
    "h": 286.7
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#3E238E
secondary
#A0B953
accent
#E444BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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