Nerdulator> put something in

Recognised as Colour

#340F6B

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

#340F6B is a violet with RGB values 52, 15, 107 and HSL 264°, 75%, 24%. It is a dark colour, so white text on it reaches 14.7:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#340F6B#340F6B
HEX#340F6B
RGBrgb(52, 15, 107)
RGB (0–1)0.2039, 0.0588, 0.4196
RGB percentages20.4%, 5.9%, 42%
HSLhsl(264.1, 75.4%, 23.9%)
HSV / HSBhsv(264.1, 86%, 42%)
CMYK51.4%, 86%, 0%, 58%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,411,819
CSS custom property--colour: #340F6B;

Brightness & contrast

Relative luminance0.02133WCAG 2.x, 0 is black and 1 is white
Perceived brightness47.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.72:1
Contrast with white14.72:1WCAG normal text: AAA
Contrast with black1.43:1WCAG normal text: Fail
Greyscale equivalent#1E1E1E
Inverted#CBF094

Colour vision & accessibility

Protanopia#00296Dno red cones; affects about 1% of men; ΔE 21.6 from the original
Deuteranopia#002669no green cones; the most common form, about 1% of men; ΔE 21.2 from the original
Tritanopia#232A3Eno blue cones; rare, and affects men and women equally; ΔE 47.9 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.72:1WCAG large text: AAA
Contrast with black, large text1.43:1WCAG large text: Fail

Named colours

Nearest named CSS colourMidnight blue (#191970)ΔE 7.96, clearly different but related
Hue familyviolet
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#466B0F
Analogous#0F186B, #620F6B
Triadic#6B340F, #0F6B34
Split complementary#6B620F, #186B0F
Tetradic#6B0F18, #466B0F, #0F6B62

Tints, shades & saturation

Lighter +40%#955EE8
Lighter +30%#7831E2
Lighter +20%#5F1CC4
Lighter +10%#4A1598
Darker −10%#1E093E
Darker −20%#090212
Darker −30%#000000
Darker −40%#000000
More saturated +25%#31007A
Less saturated −25%#371E5C

Channel breakdown

R52
G15
B107
Red52 (20.4%)
Green15 (5.9%)
Blue107 (42%)
Hue264.13°
Saturation (HSL)75.41%
Lightness23.92%
Dominant channelBlue
Hex per channelR 34 · G 0F · B 6B

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