Nerdulator> put something in

Recognised as Colour

#40155C

  • #40155C
  • Violet
  • Dark
  • Nearest: Midnight blue

#40155C is a violet with RGB values 64, 21, 92 and HSL 276°, 63%, 22%. It is a dark colour, so white text on it reaches 14.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#40155C#40155C
HEX#40155C
RGBrgb(64, 21, 92)
RGB (0–1)0.251, 0.0824, 0.3608
RGB percentages25.1%, 8.2%, 36.1%
HSLhsl(276.3, 62.8%, 22.2%)
HSV / HSBhsv(276.3, 77.2%, 36.1%)
CMYK30.4%, 77.2%, 0%, 63.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,199,772
CSS custom property--colour: #40155C;

Brightness & contrast

Relative luminance0.02399WCAG 2.x, 0 is black and 1 is white
Perceived brightness49.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.19:1
Contrast with white14.19:1WCAG normal text: AAA
Contrast with black1.48:1WCAG normal text: Fail
Greyscale equivalent#232323
Inverted#BFEAA3

Colour vision & accessibility

Protanopia#00295Eno red cones; affects about 1% of men; ΔE 23.6 from the original
Deuteranopia#032B5Ano green cones; the most common form, about 1% of men; ΔE 26.7 from the original
Tritanopia#3C2537no blue cones; rare, and affects men and women equally; ΔE 33 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.19:1WCAG large text: AAA
Contrast with black, large text1.48:1WCAG large text: Fail

Named colours

Nearest named CSS colourMidnight blue (#191970)ΔE 16.22, a distinctly different colour
Hue familyviolet
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#315C15
Analogous#1C155C, #5C1555
Triadic#5C4015, #155C40
Split complementary#555C15, #155C1D
Tetradic#5C1C15, #315C15, #15555C

Tints, shades & saturation

Lighter +40%#AB62DB
Lighter +30%#9538D2
Lighter +20%#7A28AF
Lighter +10%#5D1E86
Darker −10%#230C32
Darker −20%#060209
Darker −30%#000000
Darker −40%#000000
More saturated +25%#43076A
Less saturated −25%#3D234E

Channel breakdown

R64
G21
B92
Red64 (25.1%)
Green21 (8.2%)
Blue92 (36.1%)
Hue276.34°
Saturation (HSL)62.83%
Lightness22.16%
Dominant channelBlue
Hex per channelR 40 · G 15 · B 5C

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Nerdulate something else

Nothing in mind? Surprise me · today’s page

Every value on this page was computed from “40155c” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.