Recognised as Colour
#2C0840
- #2C0840
- Violet
- Dark
- Nearest: Midnight blue
#2C0840 is a violet with RGB values 44, 8, 64 and HSL 279°, 78%, 14%. It is a dark colour, so white text on it reaches 17.3:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#2C0840#2C0840
HEX#2C0840
RGBrgb(44, 8, 64)
RGB (0–1)0.1725, 0.0314, 0.251
RGB percentages17.3%, 3.1%, 25.1%
HSLhsl(278.6, 77.8%, 14.1%)
HSV / HSBhsv(278.6, 87.5%, 25.1%)
CMYK31.2%, 87.5%, 0%, 74.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,885,696
CSS custom property--colour: #2C0840;
Brightness & contrast
Relative luminance0.01079WCAG 2.x, 0 is black and 1 is white
Perceived brightness32.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.27:1
Contrast with white17.27:1WCAG normal text: AAA
Contrast with black1.22:1WCAG normal text: Fail
Greyscale equivalent#141414
Inverted#D3F7BF
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text17.27:1WCAG large text: AAA
Contrast with black, large text1.22:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#1C4008
Analogous#100840, #400838
Triadic#402C08, #08402C
Split complementary#384008, #084010
Tetradic#401008, #1C4008, #083840
Tints, shades & saturation
Channel breakdown
R44
G8
B64
Red44 (17.3%)
Green8 (3.1%)
Blue64 (25.1%)
Hue278.57°
Saturation (HSL)77.78%
Lightness14.12%
Dominant channelBlue
Hex per channelR 2C · G 08 · B 40
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page