#3E238D#3E238D

#3E238D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.163 H 286.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3E238D
RGBrgb(62, 35, 141)
HSLhsl(255, 60%, 35%)
HSVhsv(255, 75%, 55%)
CMYKcmyk(56%, 75.2%, 0%, 44.7%)
CIE-LABlab(24.16, 40.35, -54.21)
CIE-LCHlch(24.16, 67.58, 306.66°)
OKLaboklab(36.41% 0.0474 -0.1559)
OKLCHoklch(36.41% 0.163 286.9)
XYZxyz(7.3939, 4.1489, 25.6053)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E238D #728D23
analogous
#233D8D #3E238D #73238D
triadic
#3E238D #8D3E23 #238D3E
tetradic
#3E238D #8D233D #728D23 #238D73
square
#3E238D #8D233D #728D23 #238D73
split-complementary
#3E238D #8D7323 #3D8D23
monochromatic
#130B2B #28175C #3E238D #542FBE #7655D5

Accessibility & contrast

On white

11.48
#3E238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E238D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E238D#FFFFFF#000000##FFFFFF
##3E238D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#1C4056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e238d;
/* rgb */ color: rgb(62, 35, 141);
/* oklch */ color: oklch(36.4% 0.163 286.9);
Tailwind
colors: {
  custom: {
    50: '#7c61af',
    500: '#3e238d',
    950: '#000000',
  },
}
SCSS
$custom: #3e238d;
$custom-light: #7c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e238d",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 255.283,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36407,
    "c": 0.16298,
    "h": 286.9
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#3E238D
secondary
#9FB953
accent
#E344BB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E238D

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

Preview Lab → · Contrast checker → · Palette generator →

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