#3E307D#3E307D

#3E307D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.0% C 0.125 H 287.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3E307D
RGBrgb(62, 48, 125)
HSLhsl(251, 45%, 34%)
HSVhsv(251, 62%, 49%)
CMYKcmyk(50.4%, 61.6%, 0%, 51%)
CIE-LABlab(25.62, 27.61, -41.81)
CIE-LCHlch(25.62, 50.10, 303.44°)
OKLaboklab(37.03% 0.0365 -0.1195)
OKLCHoklch(37.03% 0.125 287)
XYZxyz(6.7441, 4.6184, 19.9341)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E307D #6F7D30
analogous
#30497D #3E307D #65307D
triadic
#3E307D #7D3E30 #307D3E
tetradic
#3E307D #7D3049 #6F7D30 #307D65
square
#3E307D #7D3049 #6F7D30 #307D65
split-complementary
#3E307D #7D6530 #497D30
monochromatic
#120E25 #281F51 #3E307D #5441A9 #7564C3

Accessibility & contrast

On white

10.92
#3E307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E307D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E307D#FFFFFF#000000##FFFFFF
##3E307D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#284251
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e307d;
/* rgb */ color: rgb(62, 48, 125);
/* oklch */ color: oklch(37.0% 0.125 287.0);
Tailwind
colors: {
  custom: {
    50: '#7969a3',
    500: '#3e307d',
    950: '#000000',
  },
}
SCSS
$custom: #3e307d;
$custom-light: #7969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e307d",
  "rgb": {
    "r": 62,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 250.909,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.125,
    "h": 287
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#3E307D
secondary
#9DAB5E
accent
#D454BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3E307D

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

Preview Lab → · Contrast checker → · Palette generator →

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