Nerdulator> put something in

Recognised as Colour

#240A38

  • #240A38
  • Violet
  • Dark
  • Nearest: Midnight blue

#240A38 is a violet with RGB values 36, 10, 56 and HSL 274°, 70%, 13%. It is a dark colour, so white text on it reaches 17.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#240A38#240A38
HEX#240A38
RGBrgb(36, 10, 56)
RGB (0–1)0.1412, 0.0392, 0.2196
RGB percentages14.1%, 3.9%, 22%
HSLhsl(273.9, 69.7%, 12.9%)
HSV / HSBhsv(273.9, 82.1%, 22%)
CMYK35.7%, 82.1%, 0%, 78%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,361,912
CSS custom property--colour: #240A38;

Brightness & contrast

Relative luminance0.00878WCAG 2.x, 0 is black and 1 is white
Perceived brightness28.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.86:1
Contrast with white17.86:1WCAG normal text: AAA
Contrast with black1.18:1WCAG normal text: Fail
Greyscale equivalent#131313
Inverted#DBF5C7

Colour vision & accessibility

Protanopia#001739no red cones; affects about 1% of men; ΔE 16.8 from the original
Deuteranopia#001837no green cones; the most common form, about 1% of men; ΔE 18.7 from the original
Tritanopia#211520no blue cones; rare, and affects men and women equally; ΔE 24.2 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text17.86:1WCAG large text: AAA
Contrast with black, large text1.18:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#1E380A
Analogous#0D0A38, #380A35
Triadic#38240A, #0A3824
Split complementary#35380A, #0A380D
Tetradic#380D0A, #1E380A, #0A3538

Tints, shades & saturation

Lighter +40%#9233DB
Lighter +30%#7721BA
Lighter +20%#5C198F
Lighter +10%#401263
Darker −10%#08020D
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#250240
Less saturated −25%#231230

Channel breakdown

R36
G10
B56
Red36 (14.1%)
Green10 (3.9%)
Blue56 (22%)
Hue273.91°
Saturation (HSL)69.7%
Lightness12.94%
Dominant channelBlue
Hex per channelR 24 · G 0A · B 38

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 “240a38” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.