#3E1158#3E1158

#3E1158 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.122 H 309.7°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#3E1158
RGBrgb(62, 17, 88)
HSLhsl(278, 68%, 21%)
HSVhsv(278, 81%, 35%)
CMYKcmyk(29.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(16.15, 34.57, -33.06)
CIE-LCHlch(16.15, 47.83, 316.28°)
OKLaboklab(29.27% 0.0777 -0.0937)
OKLCHoklch(29.27% 0.122 309.7)
XYZxyz(3.9482, 2.1297, 9.4337)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1158 #2B5811
analogous
#1A1158 #3E1158 #58114E
triadic
#3E1158 #583E11 #11583E
tetradic
#3E1158 #581A11 #2B5811 #114E58
square
#3E1158 #581A11 #2B5811 #114E58
split-complementary
#3E1158 #4E5811 #11581A
monochromatic
#12051A #1A0725 #3E1158 #621B8B #8625BF

Accessibility & contrast

On white

14.73
#3E1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3E1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1158
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1158#FFFFFF#000000##FFFFFF
##3E11581.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#012957
Tritanopia (blue-blind)
#3A2234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3e1158;
/* rgb */ color: rgb(62, 17, 88);
/* oklch */ color: oklch(29.3% 0.122 309.7);
Tailwind
colors: {
  custom: {
    50: '#775488',
    500: '#3e1158',
    950: '#000000',
  },
}
SCSS
$custom: #3e1158;
$custom-light: #775488;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1158",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 278.028,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29267,
    "c": 0.12176,
    "h": 309.7
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#3E1158
secondary
#569134
accent
#EA3D7D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1158

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

Preview Lab → · Contrast checker → · Palette generator →

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