#3E237A#3E237A

#3E237A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.139 H 291.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3E237A
RGBrgb(62, 35, 122)
HSLhsl(259, 55%, 31%)
HSVhsv(259, 71%, 48%)
CMYKcmyk(49.2%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.41, 34.61, -45.12)
CIE-LCHlch(22.41, 56.86, 307.49°)
OKLaboklab(34.63% 0.0515 -0.1293)
OKLCHoklch(34.63% 0.139 291.7)
XYZxyz(6.0995, 3.6311, 18.7881)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237A #5F7A23
analogous
#23337A #3E237A #69237A
triadic
#3E237A #7A3E23 #237A3E
tetradic
#3E237A #7A2333 #5F7A23 #237A69
square
#3E237A #7A2333 #5F7A23 #237A69
split-complementary
#3E237A #7A6923 #337A23
monochromatic
#0E081B #26154A #3E237A #5631AA #734CCC

Accessibility & contrast

On white

12.17
#3E237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E237A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237A#FFFFFF#000000##FFFFFF
##3E237A1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#2B394B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e237a;
/* rgb */ color: rgb(62, 35, 122);
/* oklch */ color: oklch(34.6% 0.139 291.7);
Tailwind
colors: {
  custom: {
    50: '#7960a1',
    500: '#3e237a',
    950: '#000000',
  },
}
SCSS
$custom: #3e237a;
$custom-light: #7960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237a",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 258.621,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34629,
    "c": 0.13913,
    "h": 291.7
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#3E237A
secondary
#8FAD4C
accent
#DF49B0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237A

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

Preview Lab → · Contrast checker → · Palette generator →

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