#3E237C#3E237C

#3E237C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.142 H 291.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3E237C
RGBrgb(62, 35, 124)
HSLhsl(258, 56%, 31%)
HSVhsv(258, 72%, 49%)
CMYKcmyk(50%, 71.8%, 0%, 51.4%)
CIE-LABlab(22.59, 35.21, -46.10)
CIE-LCHlch(22.59, 58.01, 307.37°)
OKLaboklab(34.81% 0.0511 -0.1322)
OKLCHoklch(34.81% 0.142 291.1)
XYZxyz(6.2247, 3.6812, 19.4474)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237C #617C23
analogous
#23347C #3E237C #6A237C
triadic
#3E237C #7C3E23 #237C3E
tetradic
#3E237C #7C2334 #617C23 #237C6A
square
#3E237C #7C2334 #617C23 #237C6A
split-complementary
#3E237C #7C6A23 #347C23
monochromatic
#0E081D #26164C #3E237C #5630AC #744DCD

Accessibility & contrast

On white

12.10
#3E237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E237C
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237C#FFFFFF#000000##FFFFFF
##3E237C1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#2A3A4C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e237c;
/* rgb */ color: rgb(62, 35, 124);
/* oklch */ color: oklch(34.8% 0.142 291.1);
Tailwind
colors: {
  custom: {
    50: '#7a60a3',
    500: '#3e237c',
    950: '#000000',
  },
}
SCSS
$custom: #3e237c;
$custom-light: #7a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237c",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 258.202,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.1417,
    "h": 291.1
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#3E237C
secondary
#91AF4C
accent
#DF49B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237C

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

Preview Lab → · Contrast checker → · Palette generator →

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