Nerdulator> put something in

Recognised as Colour

#340B4B

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

#340B4B is a violet with RGB values 52, 11, 75 and HSL 278°, 74%, 17%. It is a dark colour, so white text on it reaches 16.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#340B4B#340B4B
HEX#340B4B
RGBrgb(52, 11, 75)
RGB (0–1)0.2039, 0.0431, 0.2941
RGB percentages20.4%, 4.3%, 29.4%
HSLhsl(278.4, 74.4%, 16.9%)
HSV / HSBhsv(278.4, 85.3%, 29.4%)
CMYK30.7%, 85.3%, 0%, 70.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,410,763
CSS custom property--colour: #340B4B;

Brightness & contrast

Relative luminance0.01477WCAG 2.x, 0 is black and 1 is white
Perceived brightness39 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.21:1
Contrast with white16.21:1WCAG normal text: AAA
Contrast with black1.3:1WCAG normal text: Fail
Greyscale equivalent#181818
Inverted#CBF4B4

Colour vision & accessibility

Protanopia#001F4Dno red cones; affects about 1% of men; ΔE 21.6 from the original
Deuteranopia#00214Ano green cones; the most common form, about 1% of men; ΔE 24.6 from the original
Tritanopia#311B2Bno blue cones; rare, and affects men and women equally; ΔE 30 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text16.21:1WCAG large text: AAA
Contrast with black, large text1.3:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#224B0B
Analogous#140B4B, #4B0B42
Triadic#4B340B, #0B4B34
Split complementary#424B0B, #0B4B14
Tetradic#4B140B, #224B0B, #0B424B

Tints, shades & saturation

Lighter +40%#A83FE3
Lighter +30%#911FD0
Lighter +20%#7218A4
Lighter +10%#531277
Darker −10%#15041F
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#370056
Less saturated −25%#311640

Channel breakdown

R52
G11
B75
Red52 (20.4%)
Green11 (4.3%)
Blue75 (29.4%)
Hue278.44°
Saturation (HSL)74.42%
Lightness16.86%
Dominant channelBlue
Hex per channelR 34 · G 0B · B 4B

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