#240F6F color

#240F6F rgb(36, 15, 111)
Shades of blue

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
RGBrgb(36, 15, 111)
RGB percentrgb(14.1%, 5.9%, 43.5%)
HSLhsl(253, 76%, 25%)
HSV / HSBhsv(253, 86%, 44%)
CMYKcmyk(68%, 86%, 0%, 56%)
CIE LABlab(14.76, 37.89, -50.71)
CIE LCHlch(14.76, 63.31, 306.77)
CIE XYZxyz(3.767, 1.864, 15.197)
Decimal2363247
Short hexNone (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 #240F6FRatioAAAAAAA large
Sample text1.37:1FailFailFail
Sample text15.3:1PassPassPass
#240F6F as text onRatioAAAAAAA large
Sample text15.3:1PassPassPass
Sample text1.37:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.