#3E307B#3E307B

#3E307B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 36.9% C 0.122 H 287.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3E307B
RGBrgb(62, 48, 123)
HSLhsl(251, 44%, 34%)
HSVhsv(251, 61%, 48%)
CMYKcmyk(49.6%, 61%, 0%, 51.8%)
CIE-LABlab(25.47, 26.96, -40.79)
CIE-LCHlch(25.47, 48.90, 303.46°)
OKLaboklab(36.87% 0.0366 -0.1166)
OKLCHoklch(36.87% 0.122 287.4)
XYZxyz(6.6177, 4.5678, 19.2680)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E307B #6D7B30
analogous
#30477B #3E307B #63307B
triadic
#3E307B #7B3E30 #307B3E
tetradic
#3E307B #7B3047 #6D7B30 #307B63
square
#3E307B #7B3047 #6D7B30 #307B63
split-complementary
#3E307B #7B6330 #477B30
monochromatic
#120E23 #281F4F #3E307B #5441A7 #7563C2

Accessibility & contrast

On white

10.97
#3E307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E307B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E307B#FFFFFF#000000##FFFFFF
##3E307B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#2A4150
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e307b;
/* rgb */ color: rgb(62, 48, 123);
/* oklch */ color: oklch(36.9% 0.122 287.4);
Tailwind
colors: {
  custom: {
    50: '#7869a2',
    500: '#3e307b',
    950: '#000000',
  },
}
SCSS
$custom: #3e307b;
$custom-light: #7869a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e307b",
  "rgb": {
    "r": 62,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 251.2,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36871,
    "c": 0.12216,
    "h": 287.4
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#3E307B
secondary
#9BA95D
accent
#D454BC
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3E307B

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

Preview Lab → · Contrast checker → · Palette generator →

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