#3E1968#3E1968

#3E1968 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.130 H 300.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1968
RGBrgb(62, 25, 104)
HSLhsl(268, 61%, 25%)
HSVhsv(268, 76%, 41%)
CMYKcmyk(40.4%, 76%, 0%, 59.2%)
CIE-LABlab(18.88, 34.88, -39.25)
CIE-LCHlch(18.88, 52.51, 311.62°)
OKLaboklab(31.62% 0.0657 -0.112)
OKLCHoklch(31.62% 0.13 300.4)
XYZxyz(4.8323, 2.7188, 13.3642)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1968 #436819
analogous
#191C68 #3E1968 #651968
triadic
#3E1968 #683E19 #19683E
tetradic
#3E1968 #68191C #436819 #196865
square
#3E1968 #68191C #436819 #196865
split-complementary
#3E1968 #686519 #1C6819
monochromatic
#0F0619 #210D37 #3E1968 #5B2599 #7931CB

Accessibility & contrast

On white

13.60
#3E1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1968
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1968#FFFFFF#000000##FFFFFF
##3E19681.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#352C3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1968;
/* rgb */ color: rgb(62, 25, 104);
/* oklch */ color: oklch(31.6% 0.130 300.4);
Tailwind
colors: {
  custom: {
    50: '#785994',
    500: '#3e1968',
    950: '#000000',
  },
}
SCSS
$custom: #3e1968;
$custom-light: #785994;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1968",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 268.101,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31624,
    "c": 0.12985,
    "h": 300.4
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#3E1968
secondary
#719E3F
accent
#E44399
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1968

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

Preview Lab → · Contrast checker → · Palette generator →

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