Nerdulator> put something in

Recognised as Colour

#340F4E

  • #340F4E
  • Violet
  • Dark
  • Nearest: Midnight blue

#340F4E is a violet with RGB values 52, 15, 78 and HSL 275°, 68%, 18%. It is a dark colour, so white text on it reaches 15.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#340F4E#340F4E
HEX#340F4E
RGBrgb(52, 15, 78)
RGB (0–1)0.2039, 0.0588, 0.3059
RGB percentages20.4%, 5.9%, 30.6%
HSLhsl(275.2, 67.7%, 18.2%)
HSV / HSBhsv(275.2, 80.8%, 30.6%)
CMYK33.3%, 80.8%, 0%, 69.4%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,411,790
CSS custom property--colour: #340F4E;

Brightness & contrast

Relative luminance0.01622WCAG 2.x, 0 is black and 1 is white
Perceived brightness40.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.86:1
Contrast with white15.86:1WCAG normal text: AAA
Contrast with black1.32:1WCAG normal text: Fail
Greyscale equivalent#1B1B1B
Inverted#CBF0B1

Colour vision & accessibility

Protanopia#002150no red cones; affects about 1% of men; ΔE 20.7 from the original
Deuteranopia#00234Dno green cones; the most common form, about 1% of men; ΔE 23.7 from the original
Tritanopia#301E2Dno blue cones; rare, and affects men and women equally; ΔE 30.9 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text15.86:1WCAG large text: AAA
Contrast with black, large text1.32:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#294E0F
Analogous#140F4E, #4E0F49
Triadic#4E340F, #0F4E34
Split complementary#494E0F, #0F4E15
Tetradic#4E150F, #294E0F, #0F494E

Tints, shades & saturation

Lighter +40%#A14CDD
Lighter +30%#8A28CE
Lighter +20%#6D1FA4
Lighter +10%#511779
Darker −10%#170723
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#36035A
Less saturated −25%#321B42

Channel breakdown

R52
G15
B78
Red52 (20.4%)
Green15 (5.9%)
Blue78 (30.6%)
Hue275.24°
Saturation (HSL)67.74%
Lightness18.24%
Dominant channelBlue
Hex per channelR 34 · G 0F · B 4E

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