#3E2698#3E2698

#3E2698 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.173 H 284.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#3E2698
RGBrgb(62, 38, 152)
HSLhsl(253, 60%, 37%)
HSVhsv(253, 75%, 60%)
CMYKcmyk(59.2%, 75%, 0%, 40.4%)
CIE-LABlab(25.79, 42.09, -58.32)
CIE-LCHlch(25.79, 71.92, 305.82°)
OKLaboklab(37.89% 0.0423 -0.168)
OKLCHoklch(37.89% 0.173 284.1)
XYZxyz(8.3455, 4.6768, 30.1626)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2698 #809826
analogous
#264798 #3E2698 #772698
triadic
#3E2698 #983E26 #26983E
tetradic
#3E2698 #982647 #809826 #269877
square
#3E2698 #982647 #809826 #269877
split-complementary
#3E2698 #987726 #479826
monochromatic
#160E36 #2A1A67 #3E2698 #5232C9 #7A61D7

Accessibility & contrast

On white

10.85
#3E2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2698
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2698#FFFFFF#000000##FFFFFF
##3E26981.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#09465D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2698;
/* rgb */ color: rgb(62, 38, 152);
/* oklch */ color: oklch(37.9% 0.173 284.1);
Tailwind
colors: {
  custom: {
    50: '#7e63b7',
    500: '#3e2698',
    950: '#000000',
  },
}
SCSS
$custom: #3e2698;
$custom-light: #7e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2698",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 252.632,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37886,
    "c": 0.17323,
    "h": 284.1
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#3E2698
secondary
#A9BD5D
accent
#E345C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2698

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

Preview Lab → · Contrast checker → · Palette generator →

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