#3E237E#3E237E

#3E237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.144 H 290.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3E237E
RGBrgb(62, 35, 126)
HSLhsl(258, 57%, 32%)
HSVhsv(258, 72%, 49%)
CMYKcmyk(50.8%, 72.2%, 0%, 50.6%)
CIE-LABlab(22.77, 35.82, -47.08)
CIE-LCHlch(22.77, 59.15, 307.26°)
OKLaboklab(34.99% 0.0507 -0.135)
OKLCHoklch(34.99% 0.144 290.6)
XYZxyz(6.3525, 3.7323, 20.1203)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237E #637E23
analogous
#23367E #3E237E #6C237E
triadic
#3E237E #7E3E23 #237E3E
tetradic
#3E237E #7E2336 #637E23 #237E6C
square
#3E237E #7E2336 #637E23 #237E6C
split-complementary
#3E237E #7E6C23 #367E23
monochromatic
#0F081E #26164E #3E237E #5630AE #744ECE

Accessibility & contrast

On white

12.02
#3E237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E237E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237E#FFFFFF#000000##FFFFFF
##3E237E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#293A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e237e;
/* rgb */ color: rgb(62, 35, 126);
/* oklch */ color: oklch(35.0% 0.144 290.6);
Tailwind
colors: {
  custom: {
    50: '#7a60a4',
    500: '#3e237e',
    950: '#000000',
  },
}
SCSS
$custom: #3e237e;
$custom-light: #7a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237e",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 257.802,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.14424,
    "h": 290.6
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#3E237E
secondary
#93B04C
accent
#E048B3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237E

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

Preview Lab → · Contrast checker → · Palette generator →

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