#3E1F65#3E1F65

#3E1F65 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.2% C 0.118 H 300.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3E1F65
RGBrgb(62, 31, 101)
HSLhsl(267, 53%, 26%)
HSVhsv(267, 69%, 40%)
CMYKcmyk(38.6%, 69.3%, 0%, 60.4%)
CIE-LABlab(19.82, 30.75, -35.77)
CIE-LCHlch(19.82, 47.17, 310.69°)
OKLaboklab(32.21% 0.0592 -0.1018)
OKLCHoklch(32.21% 0.118 300.2)
XYZxyz(4.8250, 2.9437, 12.6234)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F65 #46651F
analogous
#1F2365 #3E1F65 #611F65
triadic
#3E1F65 #653E1F #1F653E
tetradic
#3E1F65 #651F23 #46651F #1F6561
square
#3E1F65 #651F23 #46651F #1F6561
split-complementary
#3E1F65 #65611F #23651F
monochromatic
#0E0717 #211136 #3E1F65 #5B2D94 #773CC3

Accessibility & contrast

On white

13.22
#3E1F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E1F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F65
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F65#FFFFFF#000000##FFFFFF
##3E1F651.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#002F64
Tritanopia (blue-blind)
#352F3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1f65;
/* rgb */ color: rgb(62, 31, 101);
/* oklch */ color: oklch(32.2% 0.118 300.2);
Tailwind
colors: {
  custom: {
    50: '#775d91',
    500: '#3e1f65',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f65;
$custom-light: #775d91;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f65",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 266.571,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32215,
    "c": 0.11774,
    "h": 300.2
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#3E1F65
secondary
#759946
accent
#DC4B9C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1F65

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

Preview Lab → · Contrast checker → · Palette generator →

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