Dark Violet Color Code: Hex #9400D3
The hex code for Dark Violet is #9400D3 (the CSS keyword darkviolet). Dark Violet RGB code: rgb(148, 0, 211). The xkcd color survey gives #34013F instead, which looks clearly different; both codes are below with their source.
#9400D3Top: the code browsers use#34013FBelow: compare edge to edgeDark Violet color codes: each Dark Violet hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- purple
- Contrast
- 6.56:1 with white, 3.20:1 with black
- CSS keyword
- darkviolet
- Character
- dark, vivid
- Readable text on it
- white (AA)
It shares saturation and lightness with dark turquoise in the X11 set; the two differ only in hue. The printer media color standard PWG 5101.1 uses the same value for its dark violet and pairs it with a muted light violet.
A dark, vivid purple with a cool cast. In code, darkviolet gives exactly this web value. If you mean the color as people usually picture the name, the survey value #34013F is closer: it is darker and more muted.
White text reads best on it; black text works only for large headings. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Blue Violet, its closest named neighbour, it looks about as light, more vivid and warmer; beside Rebecca Purple it looks lighter, more vivid and neither warmer nor cooler.
Colors that go with Dark Violet
Complementary: the opposite of Dark Violet
#9400D3White text 6.56:1#4C7600White text 5.39:1#C48EECBlack text 8.43:1#2C4600White text 10.59:1
Analogous
#5838F6White text 6.34:1#9400D3White text 6.56:1#B2008FWhite text 6.38:1#D4ADF2Black text 11.06:1
Triadic
#9400D3White text 6.56:1#905A00White text 5.76:1#007773White text 5.40:1#E4CCF8Black text 14.29:1
Monochrome
#26003AWhite text 18.36:1#5A0082White text 11.95:1#9400D3White text 6.56:1#B46DE4Black text 6.25:1#D4ADF2Black text 11.06:1
With neutrals
#9400D3White text 6.56:1#E4CCF8Black text 14.29:1#0F001AWhite text 20.29:1#876C9CBlack text 4.66:1
Preview
Heading on Dark Violet
Body text on this color, 6.56:1.
ButtonHeading in Dark Violet
Text in this color on white, 6.56:1.
ButtonTints and shades
#E4CCF8#D4ADF2#C48EEC#B46DE4#A447DC#9400D3#7600AA#5A0082#3F005D#26003A#0F001A
WhiteDark VioletBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: