#240F6F color
The hex color #240F6F is a dark, moderate violet.
In the RGB color model it is made of 14.1% red, 5.9% green and 43.5% blue (36, 15, 111).
Its hue angle is 253°, with 76% saturation and 25% lightness. For print, the CMYK equivalent is 68% cyan, 86% magenta, 0% yellow and 56% black.
The closest named color is Child of the Night (#220077), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.3:1).
#240F6F color codes
| HEX | #240F6F | |
|---|---|---|
| RGB | rgb(36, 15, 111) | |
| RGB percent | rgb(14.1%, 5.9%, 43.5%) | |
| HSL | hsl(253, 76%, 25%) | |
| HSV / HSB | hsv(253, 86%, 44%) | |
| CMYK | cmyk(68%, 86%, 0%, 56%) | |
| CIE LAB | lab(14.76, 37.89, -50.71) | |
| CIE LCH | lch(14.76, 63.31, 306.77) | |
| CIE XYZ | xyz(3.767, 1.864, 15.197) | |
| Decimal | 2363247 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #240F6F, 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 #240F6F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.37:1 | Fail | Fail | Fail |
| Sample text | 15.3:1 | Pass | Pass | Pass |
| #240F6F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.3:1 | Pass | Pass | Pass |
| Sample text | 1.37: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 #240F6F looks to people with the most common types of color vision deficiency.
#002872Protanopia
no red cones#00226dDeuteranopia
no green cones#002d40Tritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #240f6f; }
.text { color: #240f6f; }
.border { border: 2px solid #240f6f; }
.transparent { background-color: rgb(36 15 111 / 50%); }
.gradient { background: linear-gradient(to right, #240f6f, #540f6f); }
Similar colors
#220077Child of the Night#111166Dying Storm Blue#220066Blackmail#2f1064Infinite Inkwell#191970Midnight Blue#19197020000 Leagues Under the Sea#110077Insomniac Blue#330077Galactic Federation
Questions
- What color is #240F6F?
- #240F6F is a dark, moderate violet, closest to the named color Child of the Night. It belongs to the blue family of colors.
- What is the RGB value of #240F6F?
- The RGB value is 36, 15, 111: 36 red, 15 green and 111 blue on a 0 to 255 scale.
- What is the complementary color of #240F6F?
- The complementary color is #5A6F0F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #240F6F?
- White text. Black text has a contrast ratio of 1.37:1 and white text 15.3:1. WCAG asks for at least 4.5:1 for normal text.