#3E307E#3E307E

#3E307E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.1% C 0.126 H 286.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#3E307E
RGBrgb(62, 48, 126)
HSLhsl(251, 45%, 34%)
HSVhsv(251, 62%, 49%)
CMYKcmyk(50.8%, 61.9%, 0%, 50.6%)
CIE-LABlab(25.70, 27.93, -42.31)
CIE-LCHlch(25.70, 50.70, 303.43°)
OKLaboklab(37.11% 0.0365 -0.121)
OKLCHoklch(37.11% 0.126 286.8)
XYZxyz(6.8084, 4.6441, 20.2723)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E307E #707E30
analogous
#30497E #3E307E #65307E
triadic
#3E307E #7E3E30 #307E3E
tetradic
#3E307E #7E3049 #707E30 #307E65
square
#3E307E #7E3049 #707E30 #307E65
split-complementary
#3E307E #7E6530 #497E30
monochromatic
#120E25 #281F52 #3E307E #5441AA #7664C4

Accessibility & contrast

On white

10.89
#3E307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3E307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E307E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E307E#FFFFFF#000000##FFFFFF
##3E307E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#284252
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e307e;
/* rgb */ color: rgb(62, 48, 126);
/* oklch */ color: oklch(37.1% 0.126 286.8);
Tailwind
colors: {
  custom: {
    50: '#7969a4',
    500: '#3e307e',
    950: '#000000',
  },
}
SCSS
$custom: #3e307e;
$custom-light: #7969a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e307e",
  "rgb": {
    "r": 62,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 250.769,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.1264,
    "h": 286.8
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#3E307E
secondary
#9DAB5F
accent
#D553BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3E307E

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

Preview Lab → · Contrast checker → · Palette generator →

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