#3E1165#3E1165

#3E1165 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.136 H 303.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#3E1165
RGBrgb(62, 17, 101)
HSLhsl(272, 71%, 23%)
HSVhsv(272, 83%, 40%)
CMYKcmyk(38.6%, 83.2%, 0%, 60.4%)
CIE-LABlab(17.29, 37.84, -39.87)
CIE-LCHlch(17.29, 54.97, 313.51°)
OKLaboklab(30.43% 0.0744 -0.1137)
OKLCHoklch(30.43% 0.136 303.2)
XYZxyz(4.5355, 2.3646, 12.5269)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1165 #386511
analogous
#141165 #3E1165 #651162
triadic
#3E1165 #653E11 #11653E
tetradic
#3E1165 #651411 #386511 #116265
square
#3E1165 #651411 #386511 #116265
split-complementary
#3E1165 #626511 #116514
monochromatic
#10041A #1E0831 #3E1165 #5E1A99 #7E23CE

Accessibility & contrast

On white

14.26
#3E1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1165
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1165#FFFFFF#000000##FFFFFF
##3E11651.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#36273B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1165;
/* rgb */ color: rgb(62, 17, 101);
/* oklch */ color: oklch(30.4% 0.136 303.2);
Tailwind
colors: {
  custom: {
    50: '#785592',
    500: '#3e1165',
    950: '#000000',
  },
}
SCSS
$custom: #3e1165;
$custom-light: #785592;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1165",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 272.143,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30425,
    "c": 0.13591,
    "h": 303.2
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#3E1165
secondary
#659D35
accent
#EE3A8D
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1165

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

Preview Lab → · Contrast checker → · Palette generator →

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