#3E1868#3E1868

#3E1868 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.131 H 300.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3E1868
RGBrgb(62, 24, 104)
HSLhsl(269, 63%, 25%)
HSVhsv(269, 77%, 41%)
CMYKcmyk(40.4%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.70, 35.39, -39.55)
CIE-LCHlch(18.70, 53.07, 311.82°)
OKLaboklab(31.5% 0.0668 -0.1129)
OKLCHoklch(31.5% 0.131 300.6)
XYZxyz(4.8113, 2.6768, 13.3572)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1868 #426818
analogous
#181A68 #3E1868 #661868
triadic
#3E1868 #683E18 #18683E
tetradic
#3E1868 #68181A #426818 #186866
square
#3E1868 #68181A #426818 #186866
split-complementary
#3E1868 #686618 #1A6818
monochromatic
#0F0619 #200D36 #3E1868 #5C239A #792FCB

Accessibility & contrast

On white

13.68
#3E1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1868
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1868#FFFFFF#000000##FFFFFF
##3E18681.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#352C3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1868;
/* rgb */ color: rgb(62, 24, 104);
/* oklch */ color: oklch(31.5% 0.131 300.6);
Tailwind
colors: {
  custom: {
    50: '#785994',
    500: '#3e1868',
    950: '#000000',
  },
}
SCSS
$custom: #3e1868;
$custom-light: #785994;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1868",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 268.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31497,
    "c": 0.13114,
    "h": 300.6
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#3E1868
secondary
#709E3E
accent
#E64298
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1868

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

Preview Lab → · Contrast checker → · Palette generator →

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