#240940 color
The hex color #240940 is a very dark, moderate violet.
In the RGB color model it is made of 14.1% red, 3.5% green and 25.1% blue (36, 9, 64).
Its hue angle is 269°, with 75% saturation and 14% lightness. For print, the CMYK equivalent is 44% cyan, 86% magenta, 0% yellow and 75% black.
The closest named color is Your Darkness (#220044), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.67:1).
#240940 color codes
| HEX | #240940 | |
|---|---|---|
| RGB | rgb(36, 9, 64) | |
| RGB percent | rgb(14.1%, 3.5%, 25.1%) | |
| HSL | hsl(269, 75%, 14%) | |
| HSV / HSB | hsv(269, 86%, 25%) | |
| CMYK | cmyk(44%, 86%, 0%, 75%) | |
| CIE LAB | lab(8.49, 26.49, -29.11) | |
| CIE LCH | lch(8.49, 39.36, 312.31) | |
| CIE XYZ | xyz(1.75, 0.941, 4.939) | |
| Decimal | 2361664 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #240940, 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 #240940 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.19:1 | Fail | Fail | Fail |
| Sample text | 17.67:1 | Pass | Pass | Pass |
| #240940 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.67:1 | Pass | Pass | Pass |
| Sample text | 1.19: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 #240940 looks to people with the most common types of color vision deficiency.
#001842Protanopia
no red cones#00183fDeuteranopia
no green cones#1e1724Tritanopia
no blue cones#181818Achromatopsia
no color vision
CSS examples
.background { background-color: #240940; }
.text { color: #240940; }
.border { border: 2px solid #240940; }
.transparent { background-color: rgb(36 9 64 / 50%); }
.gradient { background: linear-gradient(to right, #240940, #400940); }
Similar colors
#220044Your Darkness#220033Coal Mine#160435Quiet Abyss#341758Fabric of Space#1c0f33Midnight Monarch#0f084bSilent Twilight#330055Hollow Knight#3b0346Romanic Scene
Closest common color name: Dark Purple.
Questions
- What color is #240940?
- #240940 is a very dark, moderate violet, closest to the named color Your Darkness. It belongs to the black family of colors.
- What is the RGB value of #240940?
- The RGB value is 36, 9, 64: 36 red, 9 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #240940?
- The complementary color is #254009, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #240940?
- White text. Black text has a contrast ratio of 1.19:1 and white text 17.67:1. WCAG asks for at least 4.5:1 for normal text.