#3E238C#3E238C

#3E238C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.162 H 287.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3E238C
RGBrgb(62, 35, 140)
HSLhsl(255, 60%, 34%)
HSVhsv(255, 75%, 55%)
CMYKcmyk(55.7%, 75%, 0%, 45.1%)
CIE-LABlab(24.06, 40.05, -53.75)
CIE-LCHlch(24.06, 67.03, 306.69°)
OKLaboklab(36.31% 0.0476 -0.1546)
OKLCHoklch(36.31% 0.162 287.1)
XYZxyz(7.3199, 4.1193, 25.2153)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E238C #718C23
analogous
#233C8C #3E238C #73238C
triadic
#3E238C #8C3E23 #238C3E
tetradic
#3E238C #8C233C #718C23 #238C73
square
#3E238C #8C233C #718C23 #238C73
split-complementary
#3E238C #8C7323 #3C8C23
monochromatic
#130B2A #28175B #3E238C #542FBD #7655D4

Accessibility & contrast

On white

11.51
#3E238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E238C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E238C#FFFFFF#000000##FFFFFF
##3E238C1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#1D4055
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e238c;
/* rgb */ color: rgb(62, 35, 140);
/* oklch */ color: oklch(36.3% 0.162 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c61af',
    500: '#3e238c',
    950: '#000000',
  },
}
SCSS
$custom: #3e238c;
$custom-light: #7c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e238c",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 255.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3631,
    "c": 0.16175,
    "h": 287.1
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#3E238C
secondary
#9EB852
accent
#E345BA
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E238C

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

Preview Lab → · Contrast checker → · Palette generator →

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