#38175C color
The hex color #38175C is a dark, moderate violet.
In the RGB color model it is made of 22% red, 9% green and 36.1% blue (56, 23, 92).
Its hue angle is 269°, with 60% saturation and 23% lightness. For print, the CMYK equivalent is 39% cyan, 75% magenta, 0% yellow and 64% black.
The closest named color is Fabric of Space (#341758), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.53:1).
#38175C color codes
| HEX | #38175C | |
|---|---|---|
| RGB | rgb(56, 23, 92) | |
| RGB percent | rgb(22%, 9%, 36.1%) | |
| HSL | hsl(269, 60%, 23%) | |
| HSV / HSB | hsv(269, 75%, 36%) | |
| CMYK | cmyk(39%, 75%, 0%, 64%) | |
| CIE LAB | lab(16.63, 31.34, -35.01) | |
| CIE LCH | lch(16.63, 46.99, 311.83) | |
| CIE XYZ | xyz(3.869, 2.226, 10.349) | |
| Decimal | 3675996 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #38175C, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #38175C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.45:1 | Fail | Fail | Fail |
| Sample text | 14.53:1 | Pass | Pass | Pass |
| #38175C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.53:1 | Pass | Pass | Pass |
| Sample text | 1.45:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #38175C looks to people with the most common types of color vision deficiency.
#00295eProtanopia
no red cones#00295bDeuteranopia
no green cones#302737Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #38175c; }
.text { color: #38175c; }
.border { border: 2px solid #38175c; }
.transparent { background-color: rgb(56 23 92 / 50%); }
.gradient { background: linear-gradient(to right, #38175c, #5a175c); }
Similar colors
#341758Fabric of Space#37115cWicked Purple#2d135fVoldemort#442266Fading Horizon#2f1064Infinite Inkwell#332266Dark Dreams#340059Cotinga Purple#330055Hollow Knight
Closest common color name: Midnight Blue.
Questions
- What color is #38175C?
- #38175C is a dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
- What is the RGB value of #38175C?
- The RGB value is 56, 23, 92: 56 red, 23 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of #38175C?
- The complementary color is #3B5C17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #38175C?
- White text. Black text has a contrast ratio of 1.45:1 and white text 14.53:1. WCAG asks for at least 4.5:1 for normal text.