#3E237D#3E237D

#3E237D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.143 H 290.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3E237D
RGBrgb(62, 35, 125)
HSLhsl(258, 56%, 31%)
HSVhsv(258, 72%, 49%)
CMYKcmyk(50.4%, 72%, 0%, 51%)
CIE-LABlab(22.68, 35.51, -46.59)
CIE-LCHlch(22.68, 58.58, 307.32°)
OKLaboklab(34.9% 0.0509 -0.1336)
OKLCHoklch(34.9% 0.143 290.9)
XYZxyz(6.2883, 3.7066, 19.7822)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237D #627D23
analogous
#23357D #3E237D #6B237D
triadic
#3E237D #7D3E23 #237D3E
tetradic
#3E237D #7D2335 #627D23 #237D6B
square
#3E237D #7D2335 #627D23 #237D6B
split-complementary
#3E237D #7D6B23 #357D23
monochromatic
#0F081D #26164D #3E237D #5630AD #744DCD

Accessibility & contrast

On white

12.06
#3E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E237D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237D#FFFFFF#000000##FFFFFF
##3E237D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#293A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e237d;
/* rgb */ color: rgb(62, 35, 125);
/* oklch */ color: oklch(34.9% 0.143 290.9);
Tailwind
colors: {
  custom: {
    50: '#7a60a3',
    500: '#3e237d',
    950: '#000000',
  },
}
SCSS
$custom: #3e237d;
$custom-light: #7a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237d",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 258,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.349,
    "c": 0.14297,
    "h": 290.9
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#3E237D
secondary
#92AF4C
accent
#E048B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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