#3E237F#3E237F

#3E237F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.146 H 290.3°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#3E237F
RGBrgb(62, 35, 127)
HSLhsl(258, 57%, 32%)
HSVhsv(258, 72%, 50%)
CMYKcmyk(51.2%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.86, 36.12, -47.57)
CIE-LCHlch(22.86, 59.72, 307.21°)
OKLaboklab(35.08% 0.0505 -0.1365)
OKLCHoklch(35.08% 0.146 290.3)
XYZxyz(6.4173, 3.7582, 20.4618)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E237F #647F23
analogous
#23367F #3E237F #6C237F
triadic
#3E237F #7F3E23 #237F3E
tetradic
#3E237F #7F2336 #647F23 #237F6C
square
#3E237F #7F2336 #647F23 #237F6C
split-complementary
#3E237F #7F6C23 #367F23
monochromatic
#0F091F #27164F #3E237F #5530AF #744ECE

Accessibility & contrast

On white

11.99
#3E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E237F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E237F#FFFFFF#000000##FFFFFF
##3E237F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#283B4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e237f;
/* rgb */ color: rgb(62, 35, 127);
/* oklch */ color: oklch(35.1% 0.146 290.3);
Tailwind
colors: {
  custom: {
    50: '#7a60a5',
    500: '#3e237f',
    950: '#000000',
  },
}
SCSS
$custom: #3e237f;
$custom-light: #7a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e237f",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 257.609,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.14551,
    "h": 290.3
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#3E237F
secondary
#94B14C
accent
#E048B3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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