#3E1268#3E1268

#3E1268 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.138 H 301.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#3E1268
RGBrgb(62, 18, 104)
HSLhsl(271, 70%, 24%)
HSVhsv(271, 83%, 41%)
CMYKcmyk(40.4%, 82.7%, 0%, 59.2%)
CIE-LABlab(17.72, 38.19, -41.15)
CIE-LCHlch(17.72, 56.14, 312.87°)
OKLaboklab(30.81% 0.0726 -0.1175)
OKLCHoklch(30.81% 0.138 301.7)
XYZxyz(4.7010, 2.4562, 13.3204)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1268 #3C6812
analogous
#131268 #3E1268 #681267
triadic
#3E1268 #683E12 #12683E
tetradic
#3E1268 #681312 #3C6812 #126768
square
#3E1268 #681312 #3C6812 #126768
split-complementary
#3E1268 #676812 #126813
monochromatic
#10051A #1F0934 #3E1268 #5D1B9C #7C24D0

Accessibility & contrast

On white

14.08
#3E1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3E1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1268
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1268#FFFFFF#000000##FFFFFF
##3E12681.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#35293D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1268;
/* rgb */ color: rgb(62, 18, 104);
/* oklch */ color: oklch(30.8% 0.138 301.7);
Tailwind
colors: {
  custom: {
    50: '#785694',
    500: '#3e1268',
    950: '#000000',
  },
}
SCSS
$custom: #3e1268;
$custom-light: #785694;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1268",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 270.698,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30807,
    "c": 0.13814,
    "h": 301.7
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#3E1268
secondary
#6AA036
accent
#ED3B92
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1268

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

Preview Lab → · Contrast checker → · Palette generator →

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